]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: devirtualize ->data_entsize
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2020 16:29:43 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:43 +0000 (11:29 -0500)
commit271a654f404d6621730c144b9b5281222814784f
tree86b915ebbdbcb3626bd8400fbb87e9bd5daf4cd0
parent9ad7a752173478aff80fbde17c34a14a2cd57925
xfs: devirtualize ->data_entsize

Source kernel commit: fdbb8c5b805c19bc2764aa1b91952e75e4c1c086

Replace the ->data_entsize dir ops method with a directly called
xfs_dir2_data_entsize helper that takes care of the differences between
the directory format with and without the file type field.

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>
14 files changed:
db/check.c
db/dir2.c
db/metadump.c
libxfs/libxfs_api_defs.h
libxfs/xfs_da_format.c
libxfs/xfs_dir2.h
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_priv.h
libxfs/xfs_dir2_sf.c
repair/dir2.c
repair/phase6.c