git: VFS accounting: do not count write operations for removed files

Francois Tigeot ftigeot at crater.dragonflybsd.org
Fri Mar 30 09:47:25 PDT 2012


commit 384367d5cc2b4958f659c717b1d3ad7eb755ee2a
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Fri Mar 30 10:52:07 2012 +0200

    VFS accounting: do not count write operations for removed files
    
    * vnode operations can and do happen out-of-order in some circumstances
      (multi-job builds with make for example)
    
    * check if the vnode has at least one associated link to be sure it
      still corresponds to an existing file
    
    * do not count the write operation if this is not the case

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/384367d5cc2b4958f659c717b1d3ad7eb755ee2a


-- 
DragonFly BSD source repository





More information about the Commits mailing list