diff options
author | Dave Chinner <dchinner@redhat.com> | 2022-07-07 11:07:32 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-07-07 11:07:32 +0200 |
commit | 76b47e528e3a27a3bf3b3f9153aad9435e03be8c (patch) | |
tree | 8939e664ff857bbd8ce1c3bf3c07eb239839c822 /fs/xfs/libxfs/xfs_bmap.c | |
parent | xfs: pass perag to xfs_ialloc_read_agi() (diff) | |
download | linux-76b47e528e3a27a3bf3b3f9153aad9435e03be8c.tar.xz linux-76b47e528e3a27a3bf3b3f9153aad9435e03be8c.zip |
xfs: kill xfs_alloc_pagf_init()
Trivial wrapper around xfs_alloc_read_agf(), can be easily replaced
by passing a NULL agfbp to xfs_alloc_read_agf().
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_bmap.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 6833110d1bd4..a76d5894641b 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -3185,7 +3185,8 @@ xfs_bmap_longest_free_extent( pag = xfs_perag_get(mp, ag); if (!pag->pagf_init) { - error = xfs_alloc_pagf_init(mp, tp, ag, XFS_ALLOC_FLAG_TRYLOCK); + error = xfs_alloc_read_agf(mp, tp, ag, XFS_ALLOC_FLAG_TRYLOCK, + NULL); if (error) { /* Couldn't lock the AGF, so skip this AG. */ if (error == -EAGAIN) { |