]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: check early for VCHR in vput_final to short-circuit in the common case
authormjg <mjg@FreeBSD.org>
Sun, 16 Feb 2020 03:16:28 +0000 (03:16 +0000)
committermjg <mjg@FreeBSD.org>
Sun, 16 Feb 2020 03:16:28 +0000 (03:16 +0000)
commit9f682dd86f5924e34b389a7d0eada69ee729700c
tree78b1c3304b0276a49c39eaaccdb0cae27280f8fb
parent152efe6c513d2c1b49af873a38b2b438d24d3361
vfs: check early for VCHR in vput_final to short-circuit in the common case

Otherwise the compiler inlines v_decr_devcount which keps getting jumped over
in the common case of not dealing with a device.
sys/kern/vfs_subr.c