Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7d437da authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nathan Scott
Browse files

[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: default avatarChristoph Hellwig <hch@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 70a061f1
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -506,13 +506,14 @@ xfs_mount(
	if (error)
	if (error)
		goto error2;
		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);
	error = XFS_IOINIT(vfsp, args, flags);
	if (error)
	if (error)
		goto error2;
		goto error2;


	if ((args->flags & XFSMNT_BARRIER) &&
	    !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
		xfs_mountfs_check_barriers(mp);
	return 0;
	return 0;


error2:
error2: