Merge tag 'ovl-update-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs
[linux-2.6-microblaze.git] / fs / xfs / xfs_acl.c
index 9e8ac9f..5c52ee8 100644 (file)
@@ -235,7 +235,7 @@ xfs_acl_set_mode(
        inode->i_ctime = current_time(inode);
        xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
 
-       if (mp->m_flags & XFS_MOUNT_WSYNC)
+       if (xfs_has_wsync(mp))
                xfs_trans_set_sync(tp);
        return xfs_trans_commit(tp);
 }