diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-22 19:47:25 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-23 17:46:51 +0300 |
commit | f759784cb61ceb77604326cd53cc2da88d24842f (patch) | |
tree | 1864cd91f5295db42a88fb2954e8403f203a5f4d /fs/xfs/xfs_attr_item.c | |
parent | 8ef1d96a985e4dc07ffbd71bd7fc5604a80cc644 (diff) | |
download | linux-f759784cb61ceb77604326cd53cc2da88d24842f.tar.xz |
xfs: use an XFS_OPSTATE_ flag for detecting if logged xattrs are available
Per reviewer request, use an OPSTATE flag (+ helpers) to decide if
logged xattrs are enabled, instead of querying the xfs_sb.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_attr_item.c')
-rw-r--r-- | fs/xfs/xfs_attr_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_attr_item.c b/fs/xfs/xfs_attr_item.c index dfe7039dac98..e5e7ddbc594b 100644 --- a/fs/xfs/xfs_attr_item.c +++ b/fs/xfs/xfs_attr_item.c @@ -469,7 +469,7 @@ xfs_attri_validate( unsigned int op = attrp->alfi_op_flags & XFS_ATTRI_OP_FLAGS_TYPE_MASK; - if (!xfs_sb_version_haslogxattrs(&mp->m_sb)) + if (!xfs_is_using_logged_xattrs(mp)) return false; if (attrp->__pad != 0) |