xfs: devirtualize ->free_hdr_to_disk
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 22:57:52 +0000 (14:57 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:20 +0000 (16:54 -0800)
commit200dada70008a1204ddd3d95250d23d6477e20e6
treea1d5cb8f5e80c2cd4852ba3385fbfd5f7934dba6
parent5ba30919a6fcf0d3d52507082ea67fab32c8bb29
xfs: devirtualize ->free_hdr_to_disk

Replace the ->free_hdr_to_disk dir ops method with a directly called
xfs_dir2_free_hdr_to_disk helper that takes care of the differences
between the v4 and v5 on-disk format.

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_da_format.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/libxfs/xfs_dir2_node.c