]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make is_log_ag() a first class helper
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Aug 2022 14:17:22 +0000 (16:17 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 30 Aug 2022 08:13:59 +0000 (10:13 +0200)
commit54f6b9e5e4886056257469c72c955bff8da79e8d
tree61a1ff4c5acc5b8d4661f00b43afe398841680a2
parentcee2d89aed7df1f697c54cd06a371c3c2aaafb42
xfs: make is_log_ag() a first class helper

Source kernel commit: 36029dee382a20cf515494376ce9f0d5949944eb

We check if an ag contains the log in many places, so make this
a first class XFS helper by lifting it to fs/xfs/libxfs/xfs_ag.h and
renaming it xfs_ag_contains_log(). The convert all the places that
check if the AG contains the log to use this helper.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ag.c
libxfs/xfs_ag.h
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_rmap_btree.c