diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-09 19:56:06 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-07-12 20:17:27 +0200 |
commit | 932b42c66cb5d0ca9800b128415b4ad6b1952b3e (patch) | |
tree | 056ae54d55ebad25ef1548a7e244f722f23e2f64 /fs/xfs/xfs_iomap.c | |
parent | xfs: use XFS_IFORK_Q to determine the presence of an xattr fork (diff) | |
download | linux-932b42c66cb5d0ca9800b128415b4ad6b1952b3e.tar.xz linux-932b42c66cb5d0ca9800b128415b4ad6b1952b3e.zip |
xfs: replace XFS_IFORK_Q with a proper predicate function
Replace this shouty macro with a real C function that has a more
descriptive name.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index eb54fd259d15..edbfd6abcc15 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c @@ -1307,7 +1307,7 @@ xfs_xattr_iomap_begin( lockmode = xfs_ilock_attr_map_shared(ip); /* if there are no attribute fork or extents, return ENOENT */ - if (!XFS_IFORK_Q(ip) || !ip->i_af.if_nextents) { + if (!xfs_inode_has_attr_fork(ip) || !ip->i_af.if_nextents) { error = -ENOENT; goto out_unlock; } |