OSDN Git Service

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)
commit2eb68a5d3619b80dec745f71df8af5f80cda16f8
treef33cacfb5bd24e72490e22b443dd6ba8e672f8a3
parent1682310474b2f223951ee46f21e34eb462cf71c2
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