Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/chfs Return immediately from successfull cache_looku...
details: https://anonhg.NetBSD.org/src/rev/270b5870a06c
branches: trunk
changeset: 805664:270b5870a06c
user: hannken <hannken%NetBSD.org@localhost>
date: Sun Jan 11 17:27:54 2015 +0000
description:
Return immediately from successfull cache_lookup().
No need to unlock an unlocked vnode.
diffstat:
sys/ufs/chfs/chfs_vnops.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 4d5ff2700f26 -r 270b5870a06c sys/ufs/chfs/chfs_vnops.c
--- a/sys/ufs/chfs/chfs_vnops.c Sun Jan 11 16:54:21 2015 +0000
+++ b/sys/ufs/chfs/chfs_vnops.c Sun Jan 11 17:27:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_vnops.c,v 1.22 2014/07/25 08:20:53 dholland Exp $ */
+/* $NetBSD: chfs_vnops.c,v 1.23 2015/01/11 17:27:54 hannken Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -88,8 +88,7 @@
* directory/name couple is already in the cache. */
if (cache_lookup(dvp, cnp->cn_nameptr, cnp->cn_namelen,
cnp->cn_nameiop, cnp->cn_flags, NULL, vpp)) {
- error = *vpp == NULLVP ? ENOENT : 0;
- goto out;
+ return (*vpp == NULLVP ? ENOENT : 0);
}
ip = VTOI(dvp);
Home |
Main Index |
Thread Index |
Old Index