UFS vnodes must have VM objects before they can be truncated. This is
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 2 Jan 2008 20:15:48 +0000 (20:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 2 Jan 2008 20:15:48 +0000 (20:15 +0000)
commitf049b5b3a1c2784f21fcef5491fa20464c04e169
tree56c7b409bbaa2042a83ebe4523f206d8c6e40634
parent9774de069a8159dd3d05072fc6ed7afc1fea3248
UFS vnodes must have VM objects before they can be truncated.  This is
normally guarenteed when the vnode is instantiated but there is a degenerate
case in ufs_inactive() that wasn't handled.

Reported-by: "Sepherosa Ziehau" <sepherosa@gmail.com>
sys/vfs/ufs/ufs_inode.c