]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: devirtualize ->sf_get_ino and ->sf_put_ino
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2020 16:29:42 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:42 +0000 (11:29 -0500)
commite96bd2d33aff60f382900077b9b393ff0b22935f
tree8b725b0a324d9682888b713d3a6d9afcb929de04
parent660836c928d60c9054ab7d094e90056f97107814
xfs: devirtualize ->sf_get_ino and ->sf_put_ino

Source kernel commit: 93b1e96a42006813e58e5052718f7b24a9312258

Replace the ->sf_get_ino and ->sf_put_ino dir ops methods with directly
called xfs_dir2_sf_get_ino and xfs_dir2_sf_put_ino helpers that take care
of the difference between the directory format with and without the file
type field.  Also move xfs_dir2_sf_get_parent_ino and
xfs_dir2_sf_put_parent_ino to xfs_dir2_sf.c with the rest of the
low-level short form entry handling and use XFS_MAXINUMBER istead of
opencoded constants.

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>
db/check.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_priv.h
libxfs/xfs_dir2_sf.c
logprint/log_misc.c
repair/dir2.c
repair/phase6.c