aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-01-10 23:32:17 -0500
committerNathan Scott <nathans@sgi.com>2006-01-10 23:32:17 -0500
commitb04ed21a1fdbfe48ee0738519a4d1af09589dfea (patch)
tree2023988bb96a9258a3fe52b73782bd7d76204057 /fs/xfs/xfs_vfsops.c
parent13059ff04c5071c3f6f8a4bd9e51631849f63fa4 (diff)
[XFS] Disable write barriers for now till intermittent IO errors are
understood. SGI-PV: 912426 SGI-Modid: xfs-linux-melb:xfs-kern:202962a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index aef4ec441e0c..f22bebf8f513 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -507,8 +507,7 @@ xfs_mount(
507 if (error) 507 if (error)
508 goto error2; 508 goto error2;
509 509
510 if ((mp->m_flags & XFS_MOUNT_NOATIME) && 510 if ((mp->m_flags & XFS_MOUNT_BARRIER) && !(vfsp->vfs_flag & VFS_RDONLY))
511 !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY))
512 xfs_mountfs_check_barriers(mp); 511 xfs_mountfs_check_barriers(mp);
513 512
514 error = XFS_IOINIT(vfsp, args, flags); 513 error = XFS_IOINIT(vfsp, args, flags);
@@ -1690,7 +1689,6 @@ xfs_parseargs(
1690 int iosize; 1689 int iosize;
1691 1690
1692 args->flags2 |= XFSMNT2_COMPAT_IOSIZE; 1691 args->flags2 |= XFSMNT2_COMPAT_IOSIZE;
1693 args->flags |= XFSMNT_BARRIER;
1694 1692
1695#if 0 /* XXX: off by default, until some remaining issues ironed out */ 1693#if 0 /* XXX: off by default, until some remaining issues ironed out */
1696 args->flags |= XFSMNT_IDELETE; /* default to on */ 1694 args->flags |= XFSMNT_IDELETE; /* default to on */
@@ -1942,8 +1940,8 @@ xfs_showargs(
1942 1940
1943 if (!(mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE)) 1941 if (!(mp->m_flags & XFS_MOUNT_COMPAT_IOSIZE))
1944 seq_printf(m, "," MNTOPT_LARGEIO); 1942 seq_printf(m, "," MNTOPT_LARGEIO);
1945 if (!(mp->m_flags & XFS_MOUNT_BARRIER)) 1943 if (mp->m_flags & XFS_MOUNT_BARRIER)
1946 seq_printf(m, "," MNTOPT_NOBARRIER); 1944 seq_printf(m, "," MNTOPT_BARRIER);
1947 1945
1948 if (!(vfsp->vfs_flag & VFS_32BITINODES)) 1946 if (!(vfsp->vfs_flag & VFS_32BITINODES))
1949 seq_printf(m, "," MNTOPT_64BITINODE); 1947 seq_printf(m, "," MNTOPT_64BITINODE);