kernel/vfs: enable accounting for ro mounts
authorFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 3 Jan 2012 13:10:16 +0000 (14:10 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 3 Jan 2012 13:37:28 +0000 (14:37 +0100)
commitcc4d37f8a346c3d1f28bce11089ab00026b8f0fb
treeff69c5428436108498bb8778c7fdaf22f197e586
parent191d7ec1f1aadafa7feda00a69a351e6a683a8cc
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.
sys/kern/vfs_default.c