Merge tag 'staging-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-microblaze.git] / fs / xfs / xfs_attr_list.c
index 8f8837f..25dcc98 100644 (file)
@@ -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);
 }