]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: make is_log_ag() a first class helper
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jul 2022 09:13:21 +0000 (19:13 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 Jul 2022 09:13:21 +0000 (19:13 +1000)
commit9eb1c6b22930b75677c57b6f2740d95314ea0fd4
tree7860b321d990485b43d7f663a1c1b2a796beb1ba
parentd5c2560e17bf5db81618d009cce1943f28a9431e
xfs: make is_log_ag() a first class helper

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>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/scrub/health.c
fs/xfs/scrub/refcount.c