]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: report realtime block quota limits on realtime directories
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:40 +0000 (20:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:21 +0000 (12:50 +0100)
commitbd015e2e7f269bdea7694e24717e631e6c219a1c
tree960cfcb8dbdeecf301c88206a7bf59c3a46ff55c
parentd25041d4a3b2af64c888cf762362b2528ba59294
xfs: report realtime block quota limits on realtime directories

[ Upstream commit 9a17ebfea9d0c7e0bb7409dcf655bf982a5d6e52 ]

On the data device, calling statvfs on a projinherit directory results
in the block and avail counts being curtailed to the project quota block
limits, if any are set.  Do the same for realtime files or directories,
only use the project quota rt block limits.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Stable-dep-of: 4b8d867ca6e2 ("xfs: don't over-report free space or inodes in statvfs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_super.c