summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-25 15:52:04 +0000
committerphk <phk@FreeBSD.org>2005-01-25 15:52:04 +0000
commitbb8d78bf443578181578e93ae89f4ba87be62f46 (patch)
tree006765566c899c6067ab86bc60e6a5ab9f93446c /sys/fs
parent5aa1777f1d2fef4a08ca34c95cd1e5130a0fe4ee (diff)
downloadFreeBSD-src-bb8d78bf443578181578e93ae89f4ba87be62f46.zip
FreeBSD-src-bb8d78bf443578181578e93ae89f4ba87be62f46.tar.gz
Introduce and use g_vfs_close().
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c4
-rw-r--r--sys/fs/hpfs/hpfs_vfsops.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c4
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c4
-rw-r--r--sys/fs/udf/udf_vfsops.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 0c77a55..3d484c9 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -473,7 +473,7 @@ out:
if (cp != NULL) {
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(cp->geom, ENXIO);
+ g_vfs_close(cp, td);
g_topology_unlock();
PICKUP_GIANT();
}
@@ -516,7 +516,7 @@ cd9660_unmount(mp, mntflags, td)
}
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(isomp->im_cp->geom, ENXIO);
+ g_vfs_close(isomp->im_cp, td);
g_topology_unlock();
PICKUP_GIANT();
vrele(isomp->im_devvp);
diff --git a/sys/fs/hpfs/hpfs_vfsops.c b/sys/fs/hpfs/hpfs_vfsops.c
index 7c42521..af5291d 100644
--- a/sys/fs/hpfs/hpfs_vfsops.c
+++ b/sys/fs/hpfs/hpfs_vfsops.c
@@ -345,7 +345,7 @@ failed:
if (bp)
brelse (bp);
mp->mnt_data = (qaddr_t)NULL;
- g_wither_geom_close(cp->geom, ENXIO);
+ g_vfs_close(cp, td);
return (error);
}
@@ -375,7 +375,7 @@ hpfs_unmount(
}
vinvalbuf(hpmp->hpm_devvp, V_SAVE, td, 0, 0);
- g_wither_geom_close(hpmp->hpm_cp->geom, ENXIO);
+ g_vfs_close(hpmp->hpm_cp, td);
vrele(hpmp->hpm_devvp);
dprintf(("hpfs_umount: freeing memory...\n"));
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index c01b1e8..93fae8a 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -722,7 +722,7 @@ error_exit:
if (cp != NULL) {
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(cp->geom, ENXIO);
+ g_vfs_close(cp, td);
g_topology_unlock();
PICKUP_GIANT();
}
@@ -798,7 +798,7 @@ msdosfs_unmount(mp, mntflags, td)
#endif
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(pmp->pm_cp->geom, ENXIO);
+ g_vfs_close(pmp->pm_cp, td);
g_topology_unlock();
PICKUP_GIANT();
vrele(pmp->pm_devvp);
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index d7ff5e2..1c2e6bd 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -441,7 +441,7 @@ out:
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(cp->geom, ENXIO);
+ g_vfs_close(cp, td);
g_topology_unlock();
PICKUP_GIANT();
@@ -489,7 +489,7 @@ ntfs_unmount(
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(ntmp->ntm_cp->geom, ENXIO);
+ g_vfs_close(ntmp->ntm_cp, td);
g_topology_unlock();
PICKUP_GIANT();
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index d39f0cc..ef3ae3f18 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -486,7 +486,7 @@ bail:
brelse(bp);
DROP_GIANT();
g_topology_lock();
- g_wither_geom_close(cp->geom, ENXIO);
+ g_vfs_close(cp, td);
g_topology_unlock();
PICKUP_GIANT();
return error;
@@ -515,7 +515,7 @@ udf_unmount(struct mount *mp, int mntflags, struct thread *td)
#endif
}
- g_wither_geom_close(udfmp->im_cp->geom, ENXIO);
+ g_vfs_close(udfmp->im_cp, td);
vrele(udfmp->im_devvp);
if (udfmp->s_table != NULL)
OpenPOWER on IntegriCloud