quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}
authorJan Kara <jack@suse.cz>
Wed, 8 Oct 2014 14:07:12 +0000 (16:07 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:50:16 +0000 (12:50 +0100)
commitd3b863248577504f6eecca2a464d6ddf86b71584
treea2ccfaebc2d005b7e6a3b1956064403b3aab7d2d
parent38e478c4489a845a5e8baf7849c286af5fed5b66
quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}

Make Q_QUOTAON / Q_QUOTAOFF quotactl call ->quota_enable /
->quota_disable callback when provided. To match current behavior of
ocfs2 & ext4 we make these quotactls turn on / off quota enforcement for
appropriate quota type.

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