Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2017 06:57:11 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323308 - head/sys/kern
Message-ID:  <201709080657.v886vBaF086386@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709080657.v886vBaF086386>