summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_ag.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2022-07-07 19:13:17 +1000
committerDave Chinner <david@fromorbit.com>2022-07-07 19:13:17 +1000
commit3829c9a10fc7da40194ec9860df8c557c2b86ed8 (patch)
treeb68fab77d9cf2a7489fb684c96e4371c73efa09f /fs/xfs/libxfs/xfs_ag.c
parent2d6ca8321c354e1cb6f6b1963c4f7bd053d2e272 (diff)
downloadlwn-3829c9a10fc7da40194ec9860df8c557c2b86ed8.tar.gz
lwn-3829c9a10fc7da40194ec9860df8c557c2b86ed8.zip
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ag.c')
0 files changed, 0 insertions, 0 deletions