]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: add some rtgroup inode helpers
authorDarrick J. Wong <djwong@kernel.org>
Fri, 22 Nov 2024 20:33:17 +0000 (12:33 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:03 +0000 (13:06 -0800)
commitaf32541081ed6b6ad49b1ea38b5128cb319841b0
tree7c304fce5ce4d74c20701a33beca94876eaadf5c
parent05290bd5c6236b8ad659157edb36bd2d38f46d3e
xfs: add some rtgroup inode helpers

Create some simple helpers to reduce the amount of typing whenever we
access rtgroup inodes.  Conversion was done with this spatch and some
minor reformatting:

@@
expression rtg;
@@

- rtg->rtg_inodes[XFS_RTGI_BITMAP]
+ rtg_bitmap(rtg)

@@
expression rtg;
@@

- rtg->rtg_inodes[XFS_RTGI_SUMMARY]
+ rtg_summary(rtg)

and the CLI command:

$ spatch --sp-file /tmp/moo.cocci --dir fs/xfs/ --use-gitgrep --in-place

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtgroup.c
fs/xfs/libxfs/xfs_rtgroup.h
fs/xfs/scrub/rtbitmap.c
fs/xfs/scrub/rtsummary.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_rtalloc.c