diff options
author | phk <phk@FreeBSD.org> | 2005-02-22 15:51:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-22 15:51:07 +0000 |
commit | f1d058e0327e1be6ec9de3aae8a83b20ad9a7325 (patch) | |
tree | 81b88d00ce24060acf31a833eefcade4cbd42906 /sys/cam | |
parent | c5aeee750f410ff1adfe7dc0218b9ecd91917934 (diff) | |
download | FreeBSD-src-f1d058e0327e1be6ec9de3aae8a83b20ad9a7325.zip FreeBSD-src-f1d058e0327e1be6ec9de3aae8a83b20ad9a7325.tar.gz |
Reap more benefits from DEVFS:
List devfs_dirents rather than vnodes off their shared struct cdev, this
saves a pointer field in the vnode at the expense of a field in the
devfs_dirent. There are often 100 times more vnodes so this is bargain.
In addition it makes it harder for people to try to do stypid things like
"finding the vnode from cdev".
Since DEVFS handles all VCHR nodes now, we can do the vnode related
cleanup in devfs_reclaim() instead of in dev_rel() and vgonel().
Similarly, we can do the struct cdev related cleanup in dev_rel()
instead of devfs_reclaim().
rename idestroy_dev() to destroy_devl() for consistency.
Add LIST_ENTRY de_alias to struct devfs_dirent.
Remove v_specnext from struct vnode.
Change si_hlist to si_alist in struct cdev.
String new devfs vnodes' devfs_dirent on si_alist when
we create them and take them off in devfs_reclaim().
Fix devfs_revoke() accordingly. Also don't clear fields
devfs_reclaim() will clear when called from vgone();
Let devfs_reclaim() call dev_rel() instead of vgonel().
Move the usecount tracking from dev_rel() to devfs_reclaim(),
and let dev_rel() take a struct cdev argument instead of vnode.
Destroy SI_CHEAPCLONE devices in dev_rel() (instead of
devfs_reclaim()) when they are no longer used. (This
should maybe happen in devfs_close() instead.)
Diffstat (limited to 'sys/cam')
0 files changed, 0 insertions, 0 deletions