xfs: add a btree entries pointer to struct xfs_da3_icnode_hdr
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 22:57:48 +0000 (14:57 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:19 +0000 (16:54 -0800)
commit51908ca75feb5b2dd4f0d0146f9c92775520812c
treece6b1643f143a690fad0de73fa878ee21626f4cc
parente1c8af1e02c7893f2d056aa44c4daf59fe0881ed
xfs: add a btree entries pointer to struct xfs_da3_icnode_hdr

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>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_da_btree.c
fs/xfs/libxfs/xfs_da_btree.h
fs/xfs/libxfs/xfs_da_format.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/scrub/dabtree.c
fs/xfs/xfs_attr_inactive.c
fs/xfs/xfs_attr_list.c