diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-09 10:56:06 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-07-12 11:17:27 -0700 |
commit | 932b42c66cb5d0ca9800b128415b4ad6b1952b3e (patch) | |
tree | 056ae54d55ebad25ef1548a7e244f722f23e2f64 /fs/xfs/xfs_attr_inactive.c | |
parent | xfs: use XFS_IFORK_Q to determine the presence of an xattr fork (diff) | |
download | linux-932b42c66cb5d0ca9800b128415b4ad6b1952b3e.tar.gz linux-932b42c66cb5d0ca9800b128415b4ad6b1952b3e.tar.bz2 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_attr_inactive.c')
-rw-r--r-- | fs/xfs/xfs_attr_inactive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_attr_inactive.c b/fs/xfs/xfs_attr_inactive.c index ec20ad7a9001..0e83cab9cdde 100644 --- a/fs/xfs/xfs_attr_inactive.c +++ b/fs/xfs/xfs_attr_inactive.c @@ -338,7 +338,7 @@ xfs_attr_inactive( ASSERT(! XFS_NOT_DQATTACHED(mp, dp)); xfs_ilock(dp, lock_mode); - if (!XFS_IFORK_Q(dp)) + if (!xfs_inode_has_attr_fork(dp)) goto out_destroy_fork; xfs_iunlock(dp, lock_mode); @@ -351,7 +351,7 @@ xfs_attr_inactive( lock_mode = XFS_ILOCK_EXCL; xfs_ilock(dp, lock_mode); - if (!XFS_IFORK_Q(dp)) + if (!xfs_inode_has_attr_fork(dp)) goto out_cancel; /* |