vfs: predict vn_lock failure as unlikely in vget

This commit is contained in:
mjg 2020-01-26 00:34:57 +00:00
parent 146b6ff311
commit f600a862f4

View File

@ -2911,7 +2911,8 @@ vget_finish(struct vnode *vp, int flags, enum vgetstate vs)
__func__));
}
if ((error = vn_lock(vp, flags)) != 0) {
error = vn_lock(vp, flags);
if (__predict_false(error != 0)) {
if (vs == VGET_USECOUNT)
vrele(vp);
else