aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/xfs_qm.h
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2016-02-08 11:27:38 +1100
committerDave Chinner <david@fromorbit.com>2016-02-08 11:27:38 +1100
commit296c24e26ee3af2dbfecb482e6bc9560bd34c455 (patch)
tree7bd3e203250eb08a9463def3a49429cd5da12387 /fs/xfs/xfs_qm.h
parentxfs: Factor xfs_seek_hole_data into helper (diff)
downloadwireguard-linux-296c24e26ee3af2dbfecb482e6bc9560bd34c455.tar.xz
wireguard-linux-296c24e26ee3af2dbfecb482e6bc9560bd34c455.zip
xfs: wire up Q_XGETNEXTQUOTA / get_nextdqblk
Add code to allow the Q_XGETNEXTQUOTA quotactl to quickly find all active quotas by examining the quota inode, and skipping over unallocated or uninitialized regions. Userspace can then use this interface rather than i.e. a getpwent() loop when asked to report all active quotas. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_qm.h')
-rw-r--r--fs/xfs/xfs_qm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_qm.h b/fs/xfs/xfs_qm.h
index 8901a01bc354..c68a38f528ba 100644
--- a/fs/xfs/xfs_qm.h
+++ b/fs/xfs/xfs_qm.h
@@ -164,8 +164,8 @@ extern void xfs_qm_dqrele_all_inodes(struct xfs_mount *, uint);
/* quota ops */
extern int xfs_qm_scall_trunc_qfiles(struct xfs_mount *, uint);
-extern int xfs_qm_scall_getquota(struct xfs_mount *, xfs_dqid_t,
- uint, struct qc_dqblk *);
+extern int xfs_qm_scall_getquota(struct xfs_mount *, xfs_dqid_t *,
+ uint, struct qc_dqblk *, uint);
extern int xfs_qm_scall_setqlim(struct xfs_mount *, xfs_dqid_t, uint,
struct qc_dqblk *);
extern int xfs_qm_scall_quotaon(struct xfs_mount *, uint);