diff options
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index e344906bdcbb..bfdabde23db0 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -506,13 +506,14 @@ xfs_mount( | |||
506 | if (error) | 506 | if (error) |
507 | goto error2; | 507 | goto error2; |
508 | 508 | ||
509 | if ((mp->m_flags & XFS_MOUNT_NOATIME) && | ||
510 | !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY)) | ||
511 | xfs_mountfs_check_barriers(mp); | ||
512 | |||
509 | error = XFS_IOINIT(vfsp, args, flags); | 513 | error = XFS_IOINIT(vfsp, args, flags); |
510 | if (error) | 514 | if (error) |
511 | goto error2; | 515 | goto error2; |
512 | 516 | ||
513 | if ((args->flags & XFSMNT_BARRIER) && | ||
514 | !(XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY)) | ||
515 | xfs_mountfs_check_barriers(mp); | ||
516 | return 0; | 517 | return 0; |
517 | 518 | ||
518 | error2: | 519 | error2: |