diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-09 10:22:51 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-09 10:22:51 +0000 |
commit | 6caf3a9f01064af0f485aa4fa4ca502700fccc1f (patch) | |
tree | d2de7b4adcaf5ba315eb769f53dc62f496bd841e /sys/miscfs/procfs | |
parent | 8fcd70be49fa7abeb8df6cf0fb4e81d30b69890f (diff) |
procfs can use vop_generic_bmap too;
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index f9cbcc1fa77..fed59a39e80 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vnops.c,v 1.43 2008/05/08 17:45:45 thib Exp $ */ +/* $OpenBSD: procfs_vnops.c,v 1.44 2008/05/09 10:22:50 thib Exp $ */ /* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */ /* @@ -130,7 +130,6 @@ int procfs_readdir(void *); int procfs_readlink(void *); int procfs_inactive(void *); int procfs_reclaim(void *); -int procfs_bmap(void *); int procfs_print(void *); int procfs_pathconf(void *); @@ -168,7 +167,7 @@ struct vnodeopv_entry_desc procfs_vnodeop_entries[] = { { &vop_reclaim_desc, procfs_reclaim }, /* reclaim */ { &vop_lock_desc, nullop }, /* lock */ { &vop_unlock_desc, nullop }, /* unlock */ - { &vop_bmap_desc, procfs_bmap }, /* bmap */ + { &vop_bmap_desc, vop_generic_bmap }, /* bmap */ { &vop_strategy_desc, procfs_badop }, /* strategy */ { &vop_print_desc, procfs_print }, /* print */ { &vop_islocked_desc, nullop }, /* islocked */ @@ -273,28 +272,6 @@ procfs_ioctl(void *v) } /* - * do block mapping for pfsnode (vp). - * since we don't use the buffer cache - * for procfs this function should never - * be called. in any case, it's not clear - * what part of the kernel ever makes use - * of this function. for sanity, this is the - * usual no-op bmap, although returning - * (EIO) would be a reasonable alternative. - */ -int -procfs_bmap(void *v) -{ - struct vop_bmap_args *ap = v; - - if (ap->a_vpp != NULL) - *ap->a_vpp = ap->a_vp; - if (ap->a_bnp != NULL) - *ap->a_bnp = ap->a_bn; - return (0); -} - -/* * _inactive is called when the pfsnode * is vrele'd and the reference count goes * to zero. (vp) will be on the vnode free |