From 8c9258b82e736184b4a7b3976b0ed47bc9fc245f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 27 Jul 2004 22:32:01 +0000 Subject: 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. --- sys/libkern/iconv.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sys/libkern') 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); } -- cgit v1.1