Hi all, At some point, I realized that I've refactored enough of the quota code in XFS that I should evaluate whether or not quota actually works on realtime volumes. It turns out that with two exceptions, it actually does seem to work properly! There are three broken pieces that I've found so far: chown doesn't work, the quota accounting goes wrong when the rt bitmap changes size, and the VFS quota ioctls don't report the realtime warning counts or limits. Hence this series fixes two things in XFS and re-enables rt quota after a break of a couple decades. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=realtime-quotas xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=realtime-quotas fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=realtime-quotas --- fs/xfs/xfs_mount.c | 4 ++- fs/xfs/xfs_qm.c | 76 +++++++++++++++++++++++++++++++------------------- fs/xfs/xfs_qm_bhv.c | 20 +++++++++---- fs/xfs/xfs_quota.h | 4 +-- fs/xfs/xfs_rtalloc.c | 46 ++++++++++++++++++++---------- fs/xfs/xfs_rtalloc.h | 3 ++ fs/xfs/xfs_stats.c | 12 ++++++-- fs/xfs/xfs_super.c | 11 +++---- fs/xfs/xfs_trans.c | 31 +++++++++++++++++++- 9 files changed, 141 insertions(+), 66 deletions(-)