cache: remove leftover assert in vn_fullpath_any_smr

It is only valid when !slash_prefixed. For slash_prefixed the length
is properly accounted for later.

Reported by:	markj (syzkaller)
This commit is contained in:
Mateusz Guzik 2020-08-24 18:23:58 +00:00
parent d709c07b34
commit f9cdb0775e

View File

@ -2834,8 +2834,6 @@ vn_fullpath_any_smr(struct vnode *vp, struct vnode *rdir, char *buf,
orig_buflen = *buflen;
MPASS(*buflen >= 2);
if (!slash_prefixed) {
MPASS(*buflen >= 2);
*buflen -= 1;