]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove the data_dotdot_offset field in struct xfs_dir_ops
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)
commit0e6944c593d89a1d0af91840c606b0fad1be1e8c
tree05c099a8b64dc86a4eb9771ec87d9bd9a1cc7878
parent5e9bc7eef8bf1da148dbf9f3a686b723b8f9dbe4
xfs: remove the data_dotdot_offset field in struct xfs_dir_ops

Source kernel commit: 2eb68a5d3619b80dec745f71df8af5f80cda16f8

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_da_format.c
libxfs/xfs_dir2.h