From: Christoph Hellwig Date: Wed, 11 Jan 2006 04:28:56 +0000 (+1100) Subject: [XFS] do barrier checks earlier. quota initialization may write to the X-Git-Tag: v2.6.16-rc1~185^2~42 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7d437da3dda0ac7199c320b6a48c04ec37a614d;p=linux-2.6 [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 Signed-off-by: Nathan Scott --- diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index e344906bdc..bfdabde23d 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: