DragonFly-2.3.2.298.g9b8235 master sys/kern vfs_subr.c sys/vfs/d

看板DFBSD_commit作者時間16年前 (2009/08/06 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 9b8235015ece1ea902691f71bb66952cc76b85a9 Author: Alex Hornung <ahornung@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
文章代碼(AID): #1AUXr3XK (DFBSD_commit)