diff options
author | Dave Chinner <dchinner@redhat.com> | 2022-07-07 11:07:40 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-07-07 11:07:40 +0200 |
commit | 08d3e84feeb8cb8e20d54f659446b98fe17913aa (patch) | |
tree | 41eca242228114713e2bcc33f900ee9d0f83450a /fs/xfs/libxfs/xfs_ialloc.c | |
parent | xfs: kill xfs_alloc_pagf_init() (diff) | |
download | linux-08d3e84feeb8cb8e20d54f659446b98fe17913aa.tar.xz linux-08d3e84feeb8cb8e20d54f659446b98fe17913aa.zip |
xfs: pass perag to xfs_alloc_read_agf()
xfs_alloc_read_agf() initialises the perag if it hasn't been done
yet, so it makes sense to pass it the perag rather than pull a
reference from the buffer. This allows callers to be per-ag centric
rather than passing mount/agno pairs everywhere.
Whilst modifying the xfs_reflink_find_shared() function definition,
declare it static and remove the extern declaration as it is an
internal function only these days.
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_ialloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index 8e252207b131..dfa8061f65d9 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -1621,7 +1621,7 @@ xfs_dialloc_good_ag( return false; if (!pag->pagf_init) { - error = xfs_alloc_read_agf(mp, tp, pag->pag_agno, flags, NULL); + error = xfs_alloc_read_agf(pag, tp, flags, NULL); if (error) return false; } |