From: Darrick J. Wong <djwong@xxxxxxxxxx> 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@xxxxxxxxxx> --- mkfs/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/proto.c b/mkfs/proto.c index 6dd3a2005b15b3..60e5c7d02713d0 100644 --- a/mkfs/proto.c +++ b/mkfs/proto.c @@ -1057,7 +1057,7 @@ rtfreesp_init( if (error) res_failed(error); - libxfs_trans_ijoin(tp, rtg->rtg_inodes[XFS_RTGI_BITMAP], 0); + libxfs_trans_ijoin(tp, rtg_bitmap(rtg), 0); error = -libxfs_rtfree_extent(tp, rtg, start_rtx, nr); if (error) { fprintf(stderr,