HomeFreeBSD

vfs cache: fix a hang when bumping vnode limit too high

Description

vfs cache: fix a hang when bumping vnode limit too high

Overflow in cache_changesize would make the value flip to 0 and stay
there as 0 << 1 does not do anything.

Note callers limit the outcome to something below u_int.

Also note there entire vnode handling thing both in vfs layer as a whole
and this file can't decide whether to long, u_long or u_int.

(cherry picked from commit 32988c1499f8698b41e15ed40a46d271e757bba3)

Details

Provenance
mjgAuthored on Sep 2 2023, 2:27 PM
Parents
rG6a196646cd15: ice(4): Update to 1.38.16-k
Branches
Unknown
Tags
Unknown