xfs: rename and simplify xfs_bmap_one_block
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Apr 2021 18:15:10 +0000 (11:15 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Apr 2021 16:35:50 +0000 (09:35 -0700)
commit2ac131df03d4f06bb0d825335663cc5064421993
tree72461f91e843e100e594b9115edb11ebf58c6a3c
parent862a804aae3031e91bd0ae0b13c90a1b13d77af3
xfs: rename and simplify xfs_bmap_one_block

xfs_bmap_one_block is only called for the attribute fork.  Move it to
xfs_attr.c, drop the unused whichfork argument and code only executed for
the data fork and rename the result to xfs_attr_is_leaf.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_attr_list.c