summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2006-01-11 15:28:56 +1100
committerNathan Scott <nathans@sgi.com>2006-01-11 15:28:56 +1100
commitc7d437da3dda0ac7199c320b6a48c04ec37a614d (patch)
tree4dcf74947a1cca8f7553d668600df7d8db4aaaa8 /fs
parent70a061f1fdbfa4805233a113868d059e9614731a (diff)
downloadop-kernel-dev-c7d437da3dda0ac7199c320b6a48c04ec37a614d.zip
op-kernel-dev-c7d437da3dda0ac7199c320b6a48c04ec37a614d.tar.gz
[XFS] do barrier checks earlier. quota initialization may write to the
filesystem SGI-PV: 912426 SGI-Modid: xfs-linux-melb:xfs-kern:202355a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_vfsops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index e344906..bfdabde 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -506,13 +506,14 @@ xfs_mount(
if (error)
goto error2;
+ if ((mp->m_flags & XFS_MOUNT_NOATIME) &&
+ !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
+ xfs_mountfs_check_barriers(mp);
+
error = XFS_IOINIT(vfsp, args, flags);
if (error)
goto error2;
- if ((args->flags & XFSMNT_BARRIER) &&
- !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
- xfs_mountfs_check_barriers(mp);
return 0;
error2:
OpenPOWER on IntegriCloud