]> err.no Git - linux-2.6/commitdiff
[XFS] do barrier checks earlier. quota initialization may write to the
authorChristoph Hellwig <hch@sgi.com>
Wed, 11 Jan 2006 04:28:56 +0000 (15:28 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:28:56 +0000 (15:28 +1100)
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>
fs/xfs/xfs_vfsops.c

index e344906bdcbb34d17163a5e78f5814d6530ee0ee..bfdabde23db007c8a56c027d493a61d328a46107 100644 (file)
@@ -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: