aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_quotaops.c
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2013-08-06 18:27:08 -0400
committerBen Myers <bpm@sgi.com>2013-08-20 18:00:38 -0400
commit5d5e3d57605e77708685e8d20a40fe86891db299 (patch)
treee58788d3fec7a5f9caaf7385388312518e2e70ca /fs/xfs/xfs_quotaops.c
parentaf30cb446dd5f4ad5b93d7d4188c49a864c0d643 (diff)
xfs: Add support for the Q_XGETQSTATV
For XFS, add support for Q_XGETQSTATV quotactl command. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Reviewed-by: Rich Johnston <rjohnston@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_quotaops.c')
-rw-r--r--fs/xfs/xfs_quotaops.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/xfs/xfs_quotaops.c b/fs/xfs/xfs_quotaops.c
index 446a2fc9825e..1326d81596c2 100644
--- a/fs/xfs/xfs_quotaops.c
+++ b/fs/xfs/xfs_quotaops.c
@@ -56,6 +56,18 @@ xfs_fs_get_xstate(
56} 56}
57 57
58STATIC int 58STATIC int
59xfs_fs_get_xstatev(
60 struct super_block *sb,
61 struct fs_quota_statv *fqs)
62{
63 struct xfs_mount *mp = XFS_M(sb);
64
65 if (!XFS_IS_QUOTA_RUNNING(mp))
66 return -ENOSYS;
67 return -xfs_qm_scall_getqstatv(mp, fqs);
68}
69
70STATIC int
59xfs_fs_set_xstate( 71xfs_fs_set_xstate(
60 struct super_block *sb, 72 struct super_block *sb,
61 unsigned int uflags, 73 unsigned int uflags,
@@ -135,6 +147,7 @@ xfs_fs_set_dqblk(
135} 147}
136 148
137const struct quotactl_ops xfs_quotactl_operations = { 149const struct quotactl_ops xfs_quotactl_operations = {
150 .get_xstatev = xfs_fs_get_xstatev,
138 .get_xstate = xfs_fs_get_xstate, 151 .get_xstate = xfs_fs_get_xstate,
139 .set_xstate = xfs_fs_set_xstate, 152 .set_xstate = xfs_fs_set_xstate,
140 .get_dqblk = xfs_fs_get_dqblk, 153 .get_dqblk = xfs_fs_get_dqblk,