diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-03 14:41:30 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-03 14:41:30 +0000 |
commit | a96362c37a21db8978123564dea721cdbd4421c6 (patch) | |
tree | d808160eb7984a8bcc5e550af5fa821852c0c464 /sys/kern/vfs_default.c | |
parent | 351632319bc7ed4e24d0f3049fd70e90063b4909 (diff) |
Introduce vop_generic_bmap(); use it where applicable.
one thing of note, fifofs changes in that its bmap now
sets the runp too 0, but that was an oversight in the
old code.
ok art@
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r-- | sys/kern/vfs_default.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 58361bc9f58..32527afcdb7 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_default.c,v 1.36 2007/12/27 13:59:12 thib Exp $ */ +/* $OpenBSD: vfs_default.c,v 1.37 2008/05/03 14:41:29 thib Exp $ */ /* * Portions of this code are: @@ -121,6 +121,21 @@ vop_generic_revoke(void *v) } int +vop_generic_bmap(void *v) +{ + struct vop_bmap_args *ap = v; + + if (ap->a_vpp) + *ap->a_vpp = ap->a_vp; + if (ap->a_bnp) + *ap->a_bnp = ap->a_bn; + if (ap->a_runp) + *ap->a_runp = 0; + + return (0); +} + +int vop_generic_bwrite(void *v) { struct vop_bwrite_args *ap = v; |