]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: Use generic helpers for quotaon and quotaoff
authorJan Kara <jack@suse.cz>
Wed, 8 Oct 2014 16:26:54 +0000 (18:26 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:50:42 +0000 (12:50 +0100)
commit1fa5efe3622db58cb8c7b9a50665e9eb9a6c7e97
tree0179b1ce0beb1f34ecabcd028c810e9dba2b4cd5
parent3e2af67e66ff025796af1a8a1fcbb4236304f90c
ext4: Use generic helpers for quotaon and quotaoff

Ext4 can just use the generic helpers provided by quota code for turning
quotas on and off when quota files are stored as system inodes. The only
difference is the feature test in ext4_quota_on_sysfile() but the same
is achieved in dquot_quota_enable() by checking whether usage tracking
for the corresponding quota type is enabled (which can happen only if
quota feature is set).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext4/super.c