]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add some rtgroup inode helpers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:46 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:57 +0000 (09:15 -0800)
commit41f06edee32b7dfe962150a9d7d8cdee3facdee2
tree14cf61355d5cddab68765d096101b4d39d861a29
parentafab9ff346f8142d1928de189aa0530a71589c3f
xfs: add some rtgroup inode helpers

Source kernel commit: af32541081ed6b6ad49b1ea38b5128cb319841b0

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>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtgroup.c
libxfs/xfs_rtgroup.h
mkfs/proto.c