]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: fix freevnode accounting
authorMateusz Guzik <mjg@FreeBSD.org>
Fri, 21 Aug 2020 21:24:14 +0000 (21:24 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Fri, 21 Aug 2020 21:24:14 +0000 (21:24 +0000)
commit19337211f83156c151fcc51dc48edc47b4b96cd6
tree428807edc9c74d1be556ca1b46ebe7a285833ed5
parent7758c80f74763a938a186cfba7dbef9c9bc6692b
vfs: fix freevnode accounting

Most notably add the missing decrement to vhold_smr.

    .-'---`-.
  ,'          `.
  |             \
  |              \
  \           _  \
  ,\  _    ,'-,/-)\
  ( * \ \,' ,' ,'-)
   `._,)     -',-')
     \/         ''/
      )        / /
     /       ,'-'

Reported by: Dan Nelson <dnelson_1901@yahoo.com>
Fixes: r362827 ("vfs: protect vnodes with smr")
sys/kern/vfs_subr.c