]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: devirtualize ->sf_get_ino and ->sf_put_ino
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:02:59 +0000 (15:02 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:21 +0000 (16:54 -0800)
commit229f2abd22221255a4f159d5e277ebf0e0f126ff
treefb11208ae9500fb10870b1b650a1e52f22047590
parentbc9d901fb7b9e0659ac2e7ce9ebc50a5c6f32154
xfs: devirtualize ->sf_get_ino and ->sf_put_ino

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>
fs/xfs/libxfs/xfs_da_format.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/libxfs/xfs_dir2_block.c
fs/xfs/libxfs/xfs_dir2_priv.h
fs/xfs/libxfs/xfs_dir2_sf.c
fs/xfs/xfs_dir2_readdir.c