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>
This commit is contained in:

committed by
Darrick J. Wong

parent
2eb68a5d36
commit
da3ca0df8b
@@ -43,10 +43,6 @@ struct xfs_dir_ops {
|
||||
xfs_dir2_data_aoff_t data_first_offset;
|
||||
size_t data_entry_offset;
|
||||
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_dot_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_dotdot_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_unused *
|
||||
|
Reference in New Issue
Block a user