]> www.infradead.org Git - users/hch/xfsprogs.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>
Thu, 28 Nov 2024 02:33:21 +0000 (18:33 -0800)
commitfc7ffaf4dbca1c11a84c8f41ca7983f361f048d1
treefb01c96d1b51663001a0711eaaa848c82c8c92d9
parentf6c7ce840dca0c69be48e7a097bd4b2141aa8653
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>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtgroup.c
libxfs/xfs_rtgroup.h
mkfs/proto.c