quota: Split ->set_xstate callback into two
authorJan Kara <jack@suse.cz>
Wed, 8 Oct 2014 13:56:21 +0000 (15:56 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:49:40 +0000 (12:49 +0100)
commit38e478c4489a845a5e8baf7849c286af5fed5b66
treef001a8e58e17e32d3969ad3069621919ea4b9dcf
parent1cd6b7be92016538ea1f2a8e1f955e9b974d93ea
quota: Split ->set_xstate callback into two

Split ->set_xstate callback into two callbacks - one for turning quotas
on (->quota_enable) and one for turning quotas off (->quota_disable). That
way we don't have to pass quotactl command into the callback which seems
cleaner.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c
fs/xfs/xfs_quotaops.c
include/linux/quota.h