quota: Handle Q_GETNEXTQUOTA when quota is disabled
authorJan Kara <jack@suse.cz>
Tue, 29 Mar 2016 15:20:10 +0000 (17:20 +0200)
committerJan Kara <jack@suse.cz>
Tue, 29 Mar 2016 15:20:10 +0000 (17:20 +0200)
commit17e8a8936c3f28085a858e65baee90dff5e8d48b
tree6ad1c88a92c84e90bf23c719d467eb198412e1a1
parent1993b176a8224e371e0732ffada7ab9eb3b0912b
quota: Handle Q_GETNEXTQUOTA when quota is disabled

Currently we oopsed when Q_GETNEXTQUOTA got called when quota was
disabled. Properly check whether quota is enabled for the filesystem
before calling into quota format handler.

Reported-by: Ted Tso <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c