namecache: fold the unlock label into the only consumer
No functional changes. MFC after: 1 week
This commit is contained in:
parent
da8f32a7f1
commit
dad74ce924
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user