OSDN Git Service

xfs: cleanup xfs_dir2_data_entsize
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 23:05:38 +0000 (15:05 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:24 +0000 (16:54 -0800)
commit711c7dbf5fdafdbb2fb906b38cefb113bfdd4a79
tree443b7ee94341d17fba96d3be8b36d167e330a033
parentd73e1cee8add0d18d5401b81db2351b9e8af899a
xfs: cleanup xfs_dir2_data_entsize

Remove the XFS_DIR2_DATA_ENTSIZE and XFS_DIR3_DATA_ENTSIZE and open
code them in their only caller, which now becomes so simple that
we can turn it into an inline function.

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_priv.h