xfs: wire up Q_XGETNEXTQUOTA / get_nextdqblk
authorEric Sandeen <sandeen@sandeen.net>
Mon, 8 Feb 2016 00:27:38 +0000 (11:27 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 8 Feb 2016 00:27:38 +0000 (11:27 +1100)
commit296c24e26ee3af2dbfecb482e6bc9560bd34c455
tree7bd3e203250eb08a9463def3a49429cd5da12387
parent8aa7d37ebf2f0cfba1411acb34e7b40e73f653e7
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>
fs/xfs/libxfs/xfs_quota_defs.h
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.h
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_quotaops.c