svn commit: r323308 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Fri Sep 8 06:57:13 UTC 2017


Author: mjg
Date: Fri Sep  8 06:57:11 2017
New Revision: 323308
URL: https://svnweb.freebsd.org/changeset/base/323308

Log:
  namecache: fold the unlock label into the only consumer
  
  No functional changes.
  
  MFC after:	1 week

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Fri Sep  8 06:51:33 2017	(r323307)
+++ head/sys/kern/vfs_cache.c	Fri Sep  8 06:57:11 2017	(r323308)
@@ -1224,7 +1224,8 @@ retry_dotdot:
 		} else {
 			counter_u64_add(nummiss, 1);
 		}
-		goto unlock;
+		cache_lookup_unlock(blp, dvlp);
+		return (0);
 	}
 
 	/* We don't want to have an entry, so dump it */
@@ -1294,10 +1295,6 @@ success:
 		ASSERT_VOP_ELOCKED(*vpp, "cache_lookup");
 	}
 	return (-1);
-
-unlock:
-	cache_lookup_unlock(blp, dvlp);
-	return (0);
 
 zap_and_exit:
 	if (blp != NULL)


More information about the svn-src-all mailing list