DragonFly-2.3.2.298.g9b8235 master sys/kern vfs_subr.c sys/vfs/devfs devfs_core.c devfs_vnops.c

Alex Hornung alexh at crater.dragonflybsd.org
Wed Aug 5 16:44:21 PDT 2009


commit 9b8235015ece1ea902691f71bb66952cc76b85a9
Author: Alex Hornung <ahornung at gmail.com>
Date:   Wed Aug 5 23:41:54 2009 +0100

    DEVFS - Use v_associate_rdev; fix vcount/count_dev
    
    to avoid trouble with both vrevoke() and the drm code which calls
    vm_mmap, which in turn expects a vnode as handle, but drm only has
    a cdev. If associate_rdev is used, the cdev will have a list of
    vnodes currently in use  associated with it.
    
    - This fixes a problem with drm which caused a panic when used.
    
    - count_dev, which is used by vcount, now returns the vnodes'
    opencount instead of the number of references.
    
    Reported-By: Johannes Hofmann

Summary of changes:
 sys/kern/vfs_subr.c         |    8 +++++---
 sys/vfs/devfs/devfs_core.c  |    6 ++++++
 sys/vfs/devfs/devfs_vnops.c |    8 +++++---
 3 files changed, 16 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9b8235015ece1ea902691f71bb66952cc76b85a9


-- 
DragonFly BSD source repository





More information about the Commits mailing list