vfs: fix copy-pasto in previous

Reported by:	dchagin
This commit is contained in:
Mateusz Guzik 2022-05-20 20:58:11 +00:00
parent 6cf748ad94
commit cdb337b097

@ -3492,7 +3492,7 @@ retry:
if (error != 0)
goto out;
error = vn_truncate_locked(vp, 0, false, td->td_ucred);
error = vn_truncate_locked(vp, length, false, td->td_ucred);
out:
VOP_UNLOCK(vp);
vn_finished_write(mp);