aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2006-01-10 23:28:56 -0500
committerNathan Scott <nathans@sgi.com>2006-01-10 23:28:56 -0500
commitc7d437da3dda0ac7199c320b6a48c04ec37a614d (patch)
tree4dcf74947a1cca8f7553d668600df7d8db4aaaa8 /fs/xfs/xfs_vfsops.c
parent70a061f1fdbfa4805233a113868d059e9614731a (diff)
[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/xfs/xfs_vfsops.c')
-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 e344906bdcbb..bfdabde23db0 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -506,13 +506,14 @@ xfs_mount(
506 if (error) 506 if (error)
507 goto error2; 507 goto error2;
508 508
509 if ((mp->m_flags & XFS_MOUNT_NOATIME) &&
510 !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
511 xfs_mountfs_check_barriers(mp);
512
509 error = XFS_IOINIT(vfsp, args, flags); 513 error = XFS_IOINIT(vfsp, args, flags);
510 if (error) 514 if (error)
511 goto error2; 515 goto error2;
512 516
513 if ((args->flags & XFSMNT_BARRIER) &&
514 !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
515 xfs_mountfs_check_barriers(mp);
516 return 0; 517 return 0;
517 518
518error2: 519error2: