diff options
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 3e948f58ab82..4f3488a7dc06 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -157,8 +157,7 @@ xfs_mount_init(void) | |||
157 | */ | 157 | */ |
158 | void | 158 | void |
159 | xfs_mount_free( | 159 | xfs_mount_free( |
160 | xfs_mount_t *mp, | 160 | xfs_mount_t *mp) |
161 | int remove_bhv) | ||
162 | { | 161 | { |
163 | if (mp->m_perag) { | 162 | if (mp->m_perag) { |
164 | int agno; | 163 | int agno; |
@@ -186,13 +185,6 @@ xfs_mount_free( | |||
186 | if (mp->m_logname != NULL) | 185 | if (mp->m_logname != NULL) |
187 | kmem_free(mp->m_logname, strlen(mp->m_logname) + 1); | 186 | kmem_free(mp->m_logname, strlen(mp->m_logname) + 1); |
188 | 187 | ||
189 | if (remove_bhv) { | ||
190 | struct bhv_vfs *vfsp = XFS_MTOVFS(mp); | ||
191 | |||
192 | bhv_remove_all_vfsops(vfsp, 0); | ||
193 | VFS_REMOVEBHV(vfsp, &mp->m_bhv); | ||
194 | } | ||
195 | |||
196 | xfs_icsb_destroy_counters(mp); | 188 | xfs_icsb_destroy_counters(mp); |
197 | } | 189 | } |
198 | 190 | ||
@@ -1287,7 +1279,7 @@ xfs_unmountfs(xfs_mount_t *mp, struct cred *cr) | |||
1287 | xfs_errortag_clearall_umount(fsid, mp->m_fsname, 0); | 1279 | xfs_errortag_clearall_umount(fsid, mp->m_fsname, 0); |
1288 | #endif | 1280 | #endif |
1289 | XFS_IODONE(vfsp); | 1281 | XFS_IODONE(vfsp); |
1290 | xfs_mount_free(mp, 1); | 1282 | xfs_mount_free(mp); |
1291 | return 0; | 1283 | return 0; |
1292 | } | 1284 | } |
1293 | 1285 | ||