diff options
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 6b1aa7d6f434..ba8df2f0dd4f 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -341,7 +341,6 @@ xfs_initialize_perag_icache( | |||
341 | 341 | ||
342 | xfs_agnumber_t | 342 | xfs_agnumber_t |
343 | xfs_initialize_perag( | 343 | xfs_initialize_perag( |
344 | bhv_vfs_t *vfs, | ||
345 | xfs_mount_t *mp, | 344 | xfs_mount_t *mp, |
346 | xfs_agnumber_t agcount) | 345 | xfs_agnumber_t agcount) |
347 | { | 346 | { |
@@ -748,7 +747,6 @@ xfs_initialize_perag_data(xfs_mount_t *mp, xfs_agnumber_t agcount) | |||
748 | */ | 747 | */ |
749 | int | 748 | int |
750 | xfs_mountfs( | 749 | xfs_mountfs( |
751 | bhv_vfs_t *vfsp, | ||
752 | xfs_mount_t *mp, | 750 | xfs_mount_t *mp, |
753 | int mfsi_flags) | 751 | int mfsi_flags) |
754 | { | 752 | { |
@@ -1025,7 +1023,7 @@ xfs_mountfs( | |||
1025 | mp->m_perag = | 1023 | mp->m_perag = |
1026 | kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t), KM_SLEEP); | 1024 | kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t), KM_SLEEP); |
1027 | 1025 | ||
1028 | mp->m_maxagi = xfs_initialize_perag(vfsp, mp, sbp->sb_agcount); | 1026 | mp->m_maxagi = xfs_initialize_perag(mp, sbp->sb_agcount); |
1029 | 1027 | ||
1030 | /* | 1028 | /* |
1031 | * log's mount-time initialization. Perform 1st part recovery if needed | 1029 | * log's mount-time initialization. Perform 1st part recovery if needed |
@@ -1192,7 +1190,6 @@ xfs_mountfs( | |||
1192 | int | 1190 | int |
1193 | xfs_unmountfs(xfs_mount_t *mp, struct cred *cr) | 1191 | xfs_unmountfs(xfs_mount_t *mp, struct cred *cr) |
1194 | { | 1192 | { |
1195 | struct bhv_vfs *vfsp = XFS_MTOVFS(mp); | ||
1196 | __uint64_t resblks; | 1193 | __uint64_t resblks; |
1197 | 1194 | ||
1198 | /* | 1195 | /* |
@@ -1258,7 +1255,7 @@ xfs_unmountfs(xfs_mount_t *mp, struct cred *cr) | |||
1258 | #if defined(DEBUG) || defined(INDUCE_IO_ERROR) | 1255 | #if defined(DEBUG) || defined(INDUCE_IO_ERROR) |
1259 | xfs_errortag_clearall(mp, 0); | 1256 | xfs_errortag_clearall(mp, 0); |
1260 | #endif | 1257 | #endif |
1261 | XFS_IODONE(vfsp); | 1258 | XFS_IODONE(mp); |
1262 | xfs_mount_free(mp); | 1259 | xfs_mount_free(mp); |
1263 | return 0; | 1260 | return 0; |
1264 | } | 1261 | } |
@@ -1286,9 +1283,7 @@ xfs_unmountfs_wait(xfs_mount_t *mp) | |||
1286 | int | 1283 | int |
1287 | xfs_fs_writable(xfs_mount_t *mp) | 1284 | xfs_fs_writable(xfs_mount_t *mp) |
1288 | { | 1285 | { |
1289 | bhv_vfs_t *vfsp = XFS_MTOVFS(mp); | 1286 | return !(xfs_test_for_freeze(mp) || XFS_FORCED_SHUTDOWN(mp) || |
1290 | |||
1291 | return !(vfs_test_for_freeze(vfsp) || XFS_FORCED_SHUTDOWN(mp) || | ||
1292 | (mp->m_flags & XFS_MOUNT_RDONLY)); | 1287 | (mp->m_flags & XFS_MOUNT_RDONLY)); |
1293 | } | 1288 | } |
1294 | 1289 | ||