]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add a bests pointer to struct xfs_dir3_icfree_hdr
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2020 16:29:42 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:42 +0000 (11:29 -0500)
commitcb5d1930223a2f7627947cdca3eff52044d67762
tree33e7d6213979bd818df58bc89e1a0e3edab29346
parent583be22fbe038d2a469697f540b2517c77272201
xfs: add a bests pointer to struct xfs_dir3_icfree_hdr

Source kernel commit: a84f3d5cb04f7dff1bf6904f0a05bc8df16137fb

All but two callers of the ->free_bests_p dir operation already have a
struct xfs_dir3_icfree_hdr from a previous call to
xfs_dir2_free_hdr_from_disk at hand.  Add a pointer to the bests to
struct xfs_dir3_icfree_hdr to clean up this pattern.  To optimize this
pattern, pass the struct xfs_dir3_icfree_hdr to xfs_dir2_free_log_bests
instead of recalculating the pointer there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/metadump.c
libxfs/xfs_da_format.c
libxfs/xfs_dir2.h
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_priv.h
repair/phase6.c