git: VFS accounting: use vq_vptomp() in kern_ftruncate()

Francois Tigeot ftigeot at crater.dragonflybsd.org
Wed Mar 28 06:29:12 PDT 2012


commit d81e7fc1c5cd6a1eed86218be7c6970a3b54ccb8
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Wed Mar 28 13:22:56 2012 +0200

    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.

Summary of changes:
 sys/kern/vfs_syscalls.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d81e7fc1c5cd6a1eed86218be7c6970a3b54ccb8


-- 
DragonFly BSD source repository





More information about the Commits mailing list