summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-03-15 20:00:03 +0000
committerphk <phk@FreeBSD.org>2005-03-15 20:00:03 +0000
commitd043926750bb71ad425d59da99871a7e3dc660ff (patch)
tree0df7ee974522d53324dfa9c6197c29fa4c9ee7c8 /sys/fs/cd9660
parent9251389b0e2e8cb1b090c6e3a47fc1619a1aef4c (diff)
downloadFreeBSD-src-d043926750bb71ad425d59da99871a7e3dc660ff.zip
FreeBSD-src-d043926750bb71ad425d59da99871a7e3dc660ff.tar.gz
Improve the vfs_hash() API: vput() the unneeded vnode centrally to
avoid replicating the vput in all the filesystems.
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 169df65..2e2f776 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -681,10 +681,8 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
ip->i_number = ino;
error = vfs_hash_insert(vp, ino, flags, curthread, vpp);
- if (error || *vpp != NULL) {
- vput(vp);
+ if (error || *vpp != NULL)
return (error);
- }
if (isodir == 0) {
int lbn, off;
OpenPOWER on IntegriCloud