Skip to content

Commit

Permalink
[XFS] do barrier checks earlier. quota initialization may write to the
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Nathan Scott committed Jan 11, 2006
1 parent 70a061f commit c7d437d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c7d437d

Please sign in to comment.