]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add a btree entries pointer to struct xfs_da3_icnode_hdr
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2020 16:29:41 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:41 +0000 (11:29 -0500)
commit8faa51a8d04a090dae7f36ba197ca382b7ecb888
tree6d3d925b599b432fdc3f17db757d6327e07dae07
parentb81278faddd78f7cee917bcf95c4082e9891b9a9
xfs: add a btree entries pointer to struct xfs_da3_icnode_hdr

Source kernel commit: 51908ca75feb5b2dd4f0d0146f9c92775520812c

All but two callers of the ->node_tree_p dir operation already have a
xfs_da3_icnode_hdr from a previous call to xfs_da3_node_hdr_from_disk at
hand.  Add a pointer to the btree entries to struct xfs_da3_icnode_hdr
to clean up this pattern.  The two remaining callers now expand the
whole header as well, but that isn't very expensive and not in a super
hot path anyway.

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>
libxfs/xfs_attr_leaf.c
libxfs/xfs_da_btree.c
libxfs/xfs_da_btree.h
libxfs/xfs_da_format.c
libxfs/xfs_dir2.h
repair/da_util.c