namecache: fold the unlock label into the only consumer

No functional changes.

MFC after:	1 week
This commit is contained in:
Mateusz Guzik 2017-09-08 06:57:11 +00:00
parent da8f32a7f1
commit dad74ce924

View File

@ -1224,7 +1224,8 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
} 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 */
@ -1295,10 +1296,6 @@ cache_lookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
}
return (-1);
unlock:
cache_lookup_unlock(blp, dvlp);
return (0);
zap_and_exit:
if (blp != NULL)
error = cache_zap_rlocked_bucket(ncp, blp);