kernel - Fix vclean assertion due to short-cut taken by TMPFS
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 18 Nov 2017 17:08:45 +0000 (09:08 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 18 Nov 2017 17:08:45 +0000 (09:08 -0800)
commitdb1347159d48b55711d5746ff3a7734f9d8bbd59
treee75bc26f61776fe80e518beae0c9ddb3413ed918
parent692504b5953249a5094ef08bef321bc2f90618ef
kernel - Fix vclean assertion due to short-cut taken by TMPFS

* Allow a vnode being destroyed to have a dirty VM object.  TMPFS
  doesn't bother to cleanup VM objects when destroying file nodes
  (e.g. when a file that is no longer referenced is removed), and
  can leave dirty pages present in the underlying object.

* Fixes occassional kernel assertions related to tmpfs (that only
  tend to occur with specific use cases).

Reported-by: zrj
sys/kern/vfs_subr.c