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_inode_item.c | |
parent | e45d7cb2356e6b59fe64da28324025cc6fcd3fbd (diff) | |
download | linux-932b42c66cb5d0ca9800b128415b4ad6b1952b3e.tar.bz2 |
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_inode_item.c')
-rw-r--r-- | fs/xfs/xfs_inode_item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index 77519e6f0b34..a78a0b9dd1d0 100644 --- a/fs/xfs/xfs_inode_item.c +++ b/fs/xfs/xfs_inode_item.c @@ -143,7 +143,7 @@ xfs_inode_item_size( xfs_log_dinode_size(ip->i_mount); xfs_inode_item_data_fork_size(iip, nvecs, nbytes); - if (XFS_IFORK_Q(ip)) + if (xfs_inode_has_attr_fork(ip)) xfs_inode_item_attr_fork_size(iip, nvecs, nbytes); } @@ -480,7 +480,7 @@ xfs_inode_item_format( xfs_inode_item_format_core(ip, lv, &vecp); xfs_inode_item_format_data_fork(iip, ilf, lv, &vecp); - if (XFS_IFORK_Q(ip)) { + if (xfs_inode_has_attr_fork(ip)) { xfs_inode_item_format_attr_fork(iip, ilf, lv, &vecp); } else { iip->ili_fields &= |