OSDN Git Service

quota: Add ->quota_{enable,disable} callbacks for VFS quotas
authorJan Kara <jack@suse.cz>
Mon, 6 Oct 2014 16:40:51 +0000 (18:40 +0200)
committerJan Kara <jack@suse.cz>
Fri, 30 Jan 2015 11:50:32 +0000 (12:50 +0100)
commit3e2af67e66ff025796af1a8a1fcbb4236304f90c
treee7205670d1994a66a47ad647151dcadcd9b3ae1c
parentd3b863248577504f6eecca2a464d6ddf86b71584
quota: Add ->quota_{enable,disable} callbacks for VFS quotas

Add functions which translate ->quota_enable / ->quota_disable calls
into appropriate changes in VFS quota. This will enable filesystems
supporting VFS quota files in system inodes to be controlled via
Q_XQUOTA[ON|OFF] quotactls for better userspace compatibility.

Also provide a vector for quotactl using these functions which can be
used by filesystems with quota files stored in hidden system files.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c
include/linux/quotaops.h