diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-13 21:15:10 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-04-15 19:35:50 +0300 |
commit | 2ac131df03d4f06bb0d825335663cc5064421993 (patch) | |
tree | 72461f91e843e100e594b9115edb11ebf58c6a3c /fs/xfs/xfs_attr_list.c | |
parent | 862a804aae3031e91bd0ae0b13c90a1b13d77af3 (diff) | |
download | linux-2ac131df03d4f06bb0d825335663cc5064421993.tar.xz |
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>
Diffstat (limited to 'fs/xfs/xfs_attr_list.c')
-rw-r--r-- | fs/xfs/xfs_attr_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_list.c index 8f8837fe21cf..25dcc98d50e6 100644 --- a/fs/xfs/xfs_attr_list.c +++ b/fs/xfs/xfs_attr_list.c @@ -514,7 +514,7 @@ xfs_attr_list_ilocked( return 0; if (dp->i_afp->if_format == XFS_DINODE_FMT_LOCAL) return xfs_attr_shortform_list(context); - if (xfs_bmap_one_block(dp, XFS_ATTR_FORK)) + if (xfs_attr_is_leaf(dp)) return xfs_attr_leaf_list(context); return xfs_attr_node_list(context); } |