ocfs2: Fix Q_GETNEXTQUOTA for filesystem without quotas
authorJan Kara <jack@suse.cz>
Tue, 29 Mar 2016 15:44:11 +0000 (17:44 +0200)
committerJan Kara <jack@suse.cz>
Tue, 29 Mar 2016 15:44:11 +0000 (17:44 +0200)
commit8f9e8f5fcc059a3cba87ce837c88316797ef3645
tree70c0a92b5227dd17aedb00bd4addc73ff61d7d96
parent17e8a8936c3f28085a858e65baee90dff5e8d48b
ocfs2: Fix Q_GETNEXTQUOTA for filesystem without quotas

When Q_GETNEXTQUOTA was called for filesystem with quotas disabled
ocfs2_get_next_id() oopses. Fix the problem by checking early whether
the filesystem has quotas enabled.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_global.c