]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove the ->data_dot_entry_p and ->data_dotdot_entry_p methods
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:31 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:22 +0000 (16:54 -0800)
commitdcdca8f2f15add19969d6224b0954b8d69cff997
tree2d180aa5f1de193da1d07d06bea6d1dcf13e0f52
parentec3c9debf87f4fa0f8ced03e61308a326efee40c
xfs: remove the ->data_dot_entry_p and ->data_dotdot_entry_p methods

The only user of the ->data_dot_entry_p and ->data_dotdot_entry_p
methods is the xfs_dir2_sf_to_block function that builds block format
directorys from a short form directory.  It already uses pointer
arithmetics with a offset variable to do so for the real entries in
the directory, so switch the generation of the . and .. entries to
the same scheme, and clean up some of the later pointer arithmetics
to use bp->b_addr directly as well and avoid some casts.

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