]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove the data_dotdot_offset field in struct xfs_dir_ops
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:30 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:22 +0000 (16:54 -0800)
commitec3c9debf87f4fa0f8ced03e61308a326efee40c
treef33cacfb5bd24e72490e22b443dd6ba8e672f8a3
parent8d4c55b3f9470dcce1f1c598c16650b19717d108
xfs: remove the data_dotdot_offset field in struct xfs_dir_ops

The data_dotdot_offset value is always equal to data_entry_offset plus
the fixed size of the "." entry.  Right now calculating that fixed size
requires an indirect call, but by the end of this series it will be
an inline function that can be constant folded.

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/xfs_dir2_readdir.c