]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: replace xfs_ag_block_count() with perag accesses
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Aug 2022 14:16:22 +0000 (16:16 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 30 Aug 2022 08:12:58 +0000 (10:12 +0200)
commitcee2d89aed7df1f697c54cd06a371c3c2aaafb42
treee91cad2d2cad9b0aba217075c541d37d9223d164
parent8aa34dc9b9abad2d76011d1b483856c72d03d004
xfs: replace xfs_ag_block_count() with perag accesses

Source kernel commit: 3829c9a10fc7da40194ec9860df8c557c2b86ed8

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ialloc_btree.c