]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: replace xfs_ag_block_count() with perag accesses
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jul 2022 09:13:17 +0000 (19:13 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 Jul 2022 09:13:17 +0000 (19:13 +1000)
commitd5c2560e17bf5db81618d009cce1943f28a9431e
treeb68fab77d9cf2a7489fb684c96e4371c73efa09f
parent0741920a8c704b7cdbb16070aa78e4bd1a270ef4
xfs: replace xfs_ag_block_count() with perag accesses

Many of the places that call xfs_ag_block_count() have a perag
available. These places can just read pag->block_count directly
instead of calculating the AG block count from first principles.

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_ialloc_btree.c
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/repair.c