aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 02ec14eeb0ce..f90485828584 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -303,6 +303,14 @@ xfs_mountfs_check_barriers(xfs_mount_t *mp)
303 return; 303 return;
304 } 304 }
305 305
306 if (mp->m_ddev_targp->bt_bdev->bd_disk->queue->ordered ==
307 QUEUE_ORDERED_NONE) {
308 xfs_fs_cmn_err(CE_NOTE, mp,
309 "Disabling barriers, not supported by the underlying device");
310 mp->m_flags &= ~XFS_MOUNT_BARRIER;
311 return;
312 }
313
306 if (xfs_readonly_buftarg(mp->m_ddev_targp)) { 314 if (xfs_readonly_buftarg(mp->m_ddev_targp)) {
307 xfs_fs_cmn_err(CE_NOTE, mp, 315 xfs_fs_cmn_err(CE_NOTE, mp,
308 "Disabling barriers, underlying device is readonly"); 316 "Disabling barriers, underlying device is readonly");