diff options
author | phk <phk@FreeBSD.org> | 2000-08-18 10:01:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-08-18 10:01:02 +0000 |
commit | 6dde24da5e3901df2e177767ae7d374fb70262ff (patch) | |
tree | 77f7a89259a726e581b2faa5b096de547743ccfb /sys/fs/procfs | |
parent | c641580eb1aaa15d6571b77d05a257a87ad133f6 (diff) | |
download | FreeBSD-src-6dde24da5e3901df2e177767ae7d374fb70262ff.zip FreeBSD-src-6dde24da5e3901df2e177767ae7d374fb70262ff.tar.gz |
Introduce vop_stdinactive() and make it the default if no vop_inactive
is declared.
Sort and prune a few vop_op[].
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index 0d72522..35b3afb 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -67,7 +67,6 @@ static int procfs_badop __P((void)); static int procfs_bmap __P((struct vop_bmap_args *)); static int procfs_close __P((struct vop_close_args *)); static int procfs_getattr __P((struct vop_getattr_args *)); -static int procfs_inactive __P((struct vop_inactive_args *)); static int procfs_ioctl __P((struct vop_ioctl_args *)); static int procfs_lookup __P((struct vop_lookup_args *)); static int procfs_open __P((struct vop_open_args *)); @@ -336,28 +335,6 @@ procfs_bmap(ap) } /* - * procfs_inactive is called when the pfsnode - * is vrele'd and the reference count goes - * to zero. (vp) will be on the vnode free - * list, so to get it back vget() must be - * used. - * - * (vp) is locked on entry, but must be unlocked on exit. - */ -static int -procfs_inactive(ap) - struct vop_inactive_args /* { - struct vnode *a_vp; - } */ *ap; -{ - struct vnode *vp = ap->a_vp; - - VOP_UNLOCK(vp, 0, ap->a_p); - - return (0); -} - -/* * _reclaim is called when getnewvnode() * wants to make use of an entry on the vnode * free list. at this time the filesystem needs @@ -1014,7 +991,6 @@ static struct vnodeopv_entry_desc procfs_vnodeop_entries[] = { { &vop_close_desc, (vop_t *) procfs_close }, { &vop_create_desc, (vop_t *) procfs_badop }, { &vop_getattr_desc, (vop_t *) procfs_getattr }, - { &vop_inactive_desc, (vop_t *) procfs_inactive }, { &vop_link_desc, (vop_t *) procfs_badop }, { &vop_lookup_desc, (vop_t *) procfs_lookup }, { &vop_mkdir_desc, (vop_t *) procfs_badop }, |