VFS accounting: use vq_vptomp() in kern_ftruncate()
authorFrancois Tigeot <ftigeot@wolfpond.org>
Wed, 28 Mar 2012 11:22:56 +0000 (13:22 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 28 Mar 2012 11:44:16 +0000 (13:44 +0200)
commitd81e7fc1c5cd6a1eed86218be7c6970a3b54ccb8
tree293dfe3158065c688e87c984ec14b760fb5f6ebe
parent90394ae122375304f8c729bc9f48b5cf616640ab
VFS accounting: use vq_vptomp() in kern_ftruncate()

* Getting the needed struct mp* from curthread is not a good idea,
  the chain of dependencies is complex and may cause problems.

* Use vq_vptomp() to get it from the vnode we're using instead.
sys/kern/vfs_syscalls.c