diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-08 17:45:46 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-05-08 17:45:46 +0000 |
commit | b3fe4a82b9c59193788f636ef8321ca582f7c456 (patch) | |
tree | 104aa0b409788809a80a585feae3138637223309 /sys/kern | |
parent | c663795752232f934b1f838e28540feceaf5f23e (diff) |
retire vn_default_error() and replace all instances
with eopnotsupp() instead;
ok blambert@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/spec_vnops.c | 4 | ||||
-rw-r--r-- | sys/kern/vfs_init.c | 14 | ||||
-rw-r--r-- | sys/kern/vfs_sync.c | 4 |
3 files changed, 5 insertions, 17 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index 65fc34603e4..e175105abc1 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.48 2008/05/03 14:41:29 thib Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.49 2008/05/08 17:45:45 thib Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -57,7 +57,7 @@ struct vnode *speclisth[SPECHSZ]; int (**spec_vnodeop_p)(void *); struct vnodeopv_entry_desc spec_vnodeop_entries[] = { - { &vop_default_desc, vn_default_error }, + { &vop_default_desc, eopnotsupp }, { &vop_lookup_desc, vop_generic_lookup }, /* lookup */ { &vop_create_desc, spec_badop }, /* create */ { &vop_mknod_desc, spec_badop }, /* mknod */ diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 4b13438a0d4..6eaceb58cc8 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_init.c,v 1.20 2007/09/07 15:00:20 art Exp $ */ +/* $OpenBSD: vfs_init.c,v 1.21 2008/05/08 17:45:45 thib Exp $ */ /* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */ /* @@ -74,18 +74,6 @@ int vfs_opv_numops; typedef int (*PFI)(void *); /* - * A miscellaneous routine. - * A generic "default" routine that just returns an error. - */ -/*ARGSUSED*/ -int -vn_default_error(void *v) -{ - - return (EOPNOTSUPP); -} - -/* * vfs_init.c * * Allocate and fill in operations vectors. diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index 01b8f766784..c4da9824420 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.43 2007/06/01 23:47:56 deraadt Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.44 2008/05/08 17:45:45 thib Exp $ */ /* * Portions of this code are: @@ -268,7 +268,7 @@ int sync_print(void *); int (**sync_vnodeop_p)(void *); struct vnodeopv_entry_desc sync_vnodeop_entries[] = { - { &vop_default_desc, vn_default_error }, + { &vop_default_desc, eopnotsupp }, { &vop_close_desc, sync_close }, /* close */ { &vop_fsync_desc, sync_fsync }, /* fsync */ { &vop_inactive_desc, sync_inactive }, /* inactive */ |