git: kernel/vfs: enable accounting for ro mounts

Francois Tigeot ftigeot at crater.dragonflybsd.org
Tue Jan 3 05:38:08 PST 2012


commit cc4d37f8a346c3d1f28bce11089ab00026b8f0fb
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Tue Jan 3 14:10:16 2012 +0100

    kernel/vfs: enable accounting for ro mounts
    
    * Some filesystems may be first mounted read-only and then upgraded
      to read-write status
    
    * The VFS layer has no provision for signaling VFSes of status change,
      mount-point specific initialization code can only be run for the
      initial mount
    
    * VFS accounting was thus never enabled on a ro->rw mount point transition
    
    * Bite the bullet and run vq_init() unconditionally for both read-only
      and read-write mounts, the cost is only a few variables set to NULL
      or zero anyway.

Summary of changes:
 sys/kern/vfs_default.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list