xfs: always pass a valid hdr to xfs_dir3_leaf_check_int
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:06:03 +0000 (15:06 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:24 +0000 (16:54 -0800)
commit23220fe260c4b307da1c1fa82a944c50bf0742e4
tree4d132eb15493ca3b03a15a096908d2f21c895644
parentae42976de7f1022e6d83f5560debc072929921a9
xfs: always pass a valid hdr to xfs_dir3_leaf_check_int

Move the code for extracting the incore header to the only caller that
didn't already do that.

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_dir2_leaf.c