diff options
| author | 2021-08-18 18:46:53 -0700 | |
|---|---|---|
| committer | 2021-08-19 10:07:13 -0700 | |
| commit | 75c8c50fa16a23f8ac89ea74834ae8ddd1558d75 (patch) | |
| tree | 57c3412402fd69e70fb1a92a82ff169dac7ba1a7 /fs/xfs/xfs_iops.c | |
| parent | xfs: convert remaining mount flags to state flags (diff) | |
| download | linux-dev-75c8c50fa16a23f8ac89ea74834ae8ddd1558d75.tar.xz linux-dev-75c8c50fa16a23f8ac89ea74834ae8ddd1558d75.zip | |
xfs: replace XFS_FORCED_SHUTDOWN with xfs_is_shutdown
Remove the shouty macro and instead use the inline function that
matches other state/feature check wrapper naming. This conversion
was done with sed.
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_iops.c')
| -rw-r--r-- | fs/xfs/xfs_iops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 2185acdf4c7a..0ff0cca94092 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c @@ -582,7 +582,7 @@ xfs_vn_getattr( trace_xfs_getattr(ip); - if (XFS_FORCED_SHUTDOWN(mp)) + if (xfs_is_shutdown(mp)) return -EIO; stat->size = XFS_ISIZE(ip); @@ -676,7 +676,7 @@ xfs_vn_change_ok( if (xfs_is_readonly(mp)) return -EROFS; - if (XFS_FORCED_SHUTDOWN(mp)) + if (xfs_is_shutdown(mp)) return -EIO; return setattr_prepare(mnt_userns, dentry, iattr); |
