xfs: Remove some pointless quota checks
authorJan Kara <jack@suse.cz>
Fri, 12 Dec 2014 19:53:36 +0000 (20:53 +0100)
committerJan Kara <jack@suse.cz>
Wed, 21 Jan 2015 18:21:33 +0000 (19:21 +0100)
commita39427007e7ccd83dbb7cd81b18156cebeab4d1e
tree19c01a46a6b488755ed7a35e8adeec7764424492
parentfbf64b3df34e6640fbbc89d6daa5f79833036890
xfs: Remove some pointless quota checks

xfs_fs_get_xstate() and xfs_fs_get_xstatev() check whether there's quota
running before calling xfs_qm_scall_getqstat() or
xfs_qm_scall_getqstatv(). Thus we are certain that superblock supports
quota and xfs_sb_version_hasquota() check is pointless. Similarly we
know that when quota is running, mp->m_quotainfo will be allocated.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/xfs/xfs_qm_syscalls.c