]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: pass perag to xfs_ialloc_read_agi()
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Aug 2022 10:50:59 +0000 (12:50 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 30 Aug 2022 07:47:10 +0000 (09:47 +0200)
commit4330a9e00400d262bc44b2a1f1fefa173c1183e7
tree1ce73c0e1f28089a7988b16896fce761702c0502
parent37dc5890efe4d1230e26990f2c6cb94885366025
xfs: pass perag to xfs_ialloc_read_agi()

Source kernel commit: 99b13c7f0bd35dd3cf2cacb61beb4557dc2b6f9b

xfs_ialloc_read_agi() 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.

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_ag.c
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc.h
libxfs/xfs_ialloc_btree.c