xfs: create a helper to count per-device inode block usage
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:53 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:53 +0000 (12:30 -0800)
commitebd610fe82c1d2a94c6fe27cd04d5cf911b5e171
tree41fd92d736205d2a8be65b5bf2b4fb9e173918a7
parent564fee6d20537eec2be2e74c8d829c654d6d8855
xfs: create a helper to count per-device inode block usage

Create a helper to compute the number of blocks that a file has
allocated from the data realtime volumes.  This patch was
split out to reduce the size of the upcoming quotacheck patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h