diff options
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 2d672f317110..593e6e2b3921 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c | |||
@@ -439,7 +439,6 @@ xfs_mount( | |||
439 | cred_t *credp) | 439 | cred_t *credp) |
440 | { | 440 | { |
441 | struct bhv_vfs *vfsp = XFS_MTOVFS(mp); | 441 | struct bhv_vfs *vfsp = XFS_MTOVFS(mp); |
442 | struct bhv_desc *p; | ||
443 | struct block_device *ddev, *logdev, *rtdev; | 442 | struct block_device *ddev, *logdev, *rtdev; |
444 | int flags = 0, error; | 443 | int flags = 0, error; |
445 | 444 | ||
@@ -453,11 +452,7 @@ xfs_mount( | |||
453 | if (error) | 452 | if (error) |
454 | return error; | 453 | return error; |
455 | 454 | ||
456 | /* | 455 | mp->m_io_ops = xfs_iocore_xfs; |
457 | * Setup xfs_mount function vectors from available behaviors | ||
458 | */ | ||
459 | p = vfs_bhv_lookup(vfsp, VFS_POSITION_IO); | ||
460 | mp->m_io_ops = p ? *(xfs_ioops_t *) vfs_bhv_custom(p) : xfs_iocore_xfs; | ||
461 | 456 | ||
462 | if (args->flags & XFSMNT_QUIET) | 457 | if (args->flags & XFSMNT_QUIET) |
463 | flags |= XFS_MFSI_QUIET; | 458 | flags |= XFS_MFSI_QUIET; |
@@ -741,7 +736,7 @@ xfs_mntupdate( | |||
741 | } | 736 | } |
742 | } else if (!(vfsp->vfs_flag & VFS_RDONLY)) { /* rw -> ro */ | 737 | } else if (!(vfsp->vfs_flag & VFS_RDONLY)) { /* rw -> ro */ |
743 | xfs_filestream_flush(mp); | 738 | xfs_filestream_flush(mp); |
744 | bhv_vfs_sync(vfsp, SYNC_DATA_QUIESCE, NULL); | 739 | xfs_sync(mp, SYNC_DATA_QUIESCE); |
745 | xfs_attr_quiesce(mp); | 740 | xfs_attr_quiesce(mp); |
746 | vfsp->vfs_flag |= VFS_RDONLY; | 741 | vfsp->vfs_flag |= VFS_RDONLY; |
747 | } | 742 | } |