]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_refcount.c
xfs: pass perag to xfs_alloc_read_agf()
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Aug 2022 12:12:37 +0000 (14:12 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 30 Aug 2022 07:53:16 +0000 (09:53 +0200)
commitf9084bd95ff081db25deba6d42069e6e7e4d1e8a
treea56d64339ac7c4ac26b14d591f78b2d53ef3afec
parent87db57baf27dea6df3c993b6a3a5878fa53662bb
xfs: pass perag to xfs_alloc_read_agf()

Source kernel commit: 08d3e84feeb8cb8e20d54f659446b98fe17913aa

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
12 files changed:
db/fsmap.c
libxfs/defer_item.c
libxfs/xfs_ag.c
libxfs/xfs_ag_resv.c
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c
libxfs/xfs_ialloc.c
libxfs/xfs_refcount.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_rmap_btree.c
repair/rmap.c