]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: inobt can use perags in many more places than it does
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:29:47 +0000 (11:29 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 07:04:59 +0000 (09:04 +0200)
commit87a02c9eea9d472b80fba1d66fbe3da5928052ab
treebf796ecb6b05d767ed3eb9b4d06f0413e2f4a48e
parent90e549b5f96579945a4a16d42719ad674b119be9
xfs: inobt can use perags in many more places than it does

Source kernel commit: bab8b795185bf37801a4f7ee5c321eee288c2f10

Lots of code in the inobt infrastructure is passed both xfs_mount
and perags. We only need perags for the per-ag inode allocation
code, so reduce the duplication by passing only the perags as the
primary object.

This ends up reducing the code size by a bit:

text    data     bss     dec     hex filename
orig    1138878  323979     548 1463405  16546d (TOTALS)
patched 1138709  323979     548 1463236  1653c4 (TOTALS)

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
db/info.c
libxfs/xfs_ag_resv.c
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_ialloc_btree.h
repair/agbtree.c