diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-09-15 09:59:02 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-12-03 11:49:09 +0000 |
commit | cc632e7f93465597896862cf9e50baefb1999215 (patch) | |
tree | 4a4a98f86e4fbfc5d127f2059c658ce2da1a87b0 /fs/gfs2/ops_fstype.c | |
parent | 8c42d637f6f2859e0fb28b78d5add7f0dc6d0973 (diff) | |
download | linux-stable-cc632e7f93465597896862cf9e50baefb1999215.tar.gz linux-stable-cc632e7f93465597896862cf9e50baefb1999215.tar.bz2 linux-stable-cc632e7f93465597896862cf9e50baefb1999215.zip |
GFS2: Hook gfs2_quota_sync into VFS via gfs2_quotactl_ops
The plan is to add further operations to the gfs2_quotactl_ops
in future patches. The sync operation is easy, so we start with
that one.
We plan to use the XFS quota control functions because they more
closely match the GFS2 ones.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_fstype.c')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index e5ee06231ae5..36b11cba57e3 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -18,6 +18,7 @@ #include <linux/mount.h> #include <linux/gfs2_ondisk.h> #include <linux/slow-work.h> +#include <linux/quotaops.h> #include "gfs2.h" #include "incore.h" @@ -1138,6 +1139,8 @@ static int fill_super(struct super_block *sb, struct gfs2_args *args, int silent sb->s_op = &gfs2_super_ops; sb->s_export_op = &gfs2_export_ops; sb->s_xattr = gfs2_xattr_handlers; + sb->s_qcop = &gfs2_quotactl_ops; + sb_dqopt(sb)->flags |= DQUOT_QUOTA_SYS_FILE; sb->s_time_gran = 1; sb->s_maxbytes = MAX_LFS_FILESIZE; |