[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>
This commit is contained in:
Christoph Hellwig 2006-01-11 15:28:56 +11:00 committed by Nathan Scott
parent 70a061f1fd
commit c7d437da3d

View 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: