]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove the ->data_dot_entry_p and ->data_dotdot_entry_p methods
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)
commit26df243383419f3b5d7b159d1bf8af996509191c
treeb47add7a148201cd8b05ead5ffabcf6f0c6af3d0
parent0e6944c593d89a1d0af91840c606b0fad1be1e8c
xfs: remove the ->data_dot_entry_p and ->data_dotdot_entry_p methods

Source kernel commit: da3ca0df8bd146bf1c83db1b9763189976175e87

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