diff options
author | phk <phk@FreeBSD.org> | 2004-07-27 22:32:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-27 22:32:01 +0000 |
commit | 8c9258b82e736184b4a7b3976b0ed47bc9fc245f (patch) | |
tree | 44f3ea5ab43e552a2396033056fa1b93e9c9c1b8 /sys/libkern | |
parent | c8b0bad675274967afe2c519d05720601a6df0ad (diff) | |
download | FreeBSD-src-8c9258b82e736184b4a7b3976b0ed47bc9fc245f.zip FreeBSD-src-8c9258b82e736184b4a7b3976b0ed47bc9fc245f.tar.gz |
Convert the vfsconf list to a TAILQ.
Introduce vfs_byname() function to find things on it.
Staticize vfs_nmount() function under the name vfs_donmount().
Various cleanups.
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/iconv.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c index 462a2cf..cfdc28a 100644 --- a/sys/libkern/iconv.c +++ b/sys/libkern/iconv.c @@ -518,13 +518,8 @@ iconv_vfs_refcount(const char *fsname) { struct vfsconf *vfsp; - for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) { - if (!strcmp(vfsp->vfc_name, fsname)) { - if (vfsp->vfc_refcount > 0) - return (EBUSY); - else - return (0); - } - } + vfsp = vfs_byname(fsname); + if (vfsp != NULL && vfsp->vfc_refcount > 0) + return (EBUSY); return (0); } |