aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2024-02-22 20:30:53 +0000
committerDarrick J. Wong <[email protected]>2024-02-22 20:30:53 +0000
commitebd610fe82c1d2a94c6fe27cd04d5cf911b5e171 (patch)
tree41fd92d736205d2a8be65b5bf2b4fb9e173918a7 /fs/xfs/xfs_inode.h
parentxfs: create a xchk_trans_alloc_empty helper for scrub (diff)
downloadkernel-ebd610fe82c1d2a94c6fe27cd04d5cf911b5e171.tar.gz
kernel-ebd610fe82c1d2a94c6fe27cd04d5cf911b5e171.zip
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 796d11065fe2..7bbdc7009e7d 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -623,5 +623,7 @@ int xfs_inode_reload_unlinked_bucket(struct xfs_trans *tp, struct xfs_inode *ip)
int xfs_inode_reload_unlinked(struct xfs_inode *ip);
bool xfs_ifork_zapped(const struct xfs_inode *ip, int whichfork);
+void xfs_inode_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip,
+ xfs_filblks_t *dblocks, xfs_filblks_t *rblocks);
#endif /* __XFS_INODE_H__ */