xfs: devirtualize ->db_to_fdb and ->db_to_fdindex
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:01:39 +0000 (15:01 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:21 +0000 (16:54 -0800)
commit3d92c93b7065be28eda33f92681d2f1121fbf8bf
tree7aa68ed3c2e23addaa06239e6418bc7d7270e24b
parent5893e4feb0eac11aab7b93ff9fe7e6e58bcec5ec
xfs: devirtualize ->db_to_fdb and ->db_to_fdindex

Now that the max bests value is in struct xfs_da_geometry both instances
of ->db_to_fdb and ->db_to_fdindex are identical.  Replace them with
local xfs_dir2_db_to_fdb and xfs_dir2_db_to_fdindex functions in
xfs_dir2_node.c.

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_node.c