Browse Source

[XFS] Use XFS_VFSTOM in more places instead of open coding it.

SGI-PV: 947206
SGI-Modid: xfs-linux-melb:xfs-kern:25310a

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Nathan Scott 19 years ago
parent
commit
02d7c92334
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/xfs/linux-2.6/xfs_vfs.c

+ 1 - 1
fs/xfs/linux-2.6/xfs_vfs.c

@@ -295,7 +295,7 @@ bhv_remove_all_vfsops(
 	bhv_remove_vfsops(vfsp, VFS_POSITION_DM);
 	bhv_remove_vfsops(vfsp, VFS_POSITION_DM);
 	if (!freebase)
 	if (!freebase)
 		return;
 		return;
-	mp = XFS_BHVTOM(bhv_lookup(VFS_BHVHEAD(vfsp), &xfs_vfsops));
+	mp = XFS_VFSTOM(vfsp);
 	VFS_REMOVEBHV(vfsp, &mp->m_bhv);
 	VFS_REMOVEBHV(vfsp, &mp->m_bhv);
 	xfs_mount_free(mp, 0);
 	xfs_mount_free(mp, 0);
 }
 }