diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-08-18 18:46:52 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-19 10:07:12 -0700 |
commit | 0560f31a09e523090d1ab2bfe21c69d028c2bdf2 (patch) | |
tree | 1f5d7a7dc65bfa3f9d7217b403071c1f68cb1e69 /fs/xfs/xfs_bmap_util.c | |
parent | 8970a5b8a46c526a738db2cb89173aa0a2fd02a9 (diff) | |
download | linux-0560f31a09e523090d1ab2bfe21c69d028c2bdf2.tar.gz linux-0560f31a09e523090d1ab2bfe21c69d028c2bdf2.tar.bz2 linux-0560f31a09e523090d1ab2bfe21c69d028c2bdf2.zip |
xfs: convert mount flags to features
Replace m_flags feature checks with xfs_has_<feature>() calls and
rework the setup code to set flags in m_features.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index af0a61134d1f..a43220dba739 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c @@ -1822,7 +1822,7 @@ xfs_swap_extents( * If this is a synchronous mount, make sure that the * transaction goes to disk before returning to the user. */ - if (mp->m_flags & XFS_MOUNT_WSYNC) + if (xfs_has_wsync(mp)) xfs_trans_set_sync(tp); error = xfs_trans_commit(tp); |