diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-10-26 20:55:39 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-10-26 20:55:39 +0000 |
commit | dba3870c1059dab99eeef992db8657e5e67fa29d (patch) | |
tree | 1897a5daec6ed713e0944ed405d409fc4835c6db /sys/miscfs/specfs | |
parent | e83f76772d52ab8e3cf1e304f615e8003e2fbf46 (diff) | |
download | src-dba3870c1059dab99eeef992db8657e5e67fa29d.tar.gz src-dba3870c1059dab99eeef992db8657e5e67fa29d.zip |
VFS interior redecoration.
Rename vn_default_error to vop_defaultop all over the place.
Move vn_bwrite from vfs_bio.c to vfs_default.c and call it vop_stdbwrite.
Use vop_null instead of nullop.
Move vop_nopoll from vfs_subr.c to vfs_default.c
Move vop_sharedlock from vfs_subr.c to vfs_default.c
Move vop_nolock from vfs_subr.c to vfs_default.c
Move vop_nounlock from vfs_subr.c to vfs_default.c
Move vop_noislocked from vfs_subr.c to vfs_default.c
Use vop_ebadf instead of *_ebadf.
Add vop_defaultop for getpages on master vnode in MFS.
Notes
Notes:
svn path=/head/; revision=30743
Diffstat (limited to 'sys/miscfs/specfs')
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index bf9a24442d34..e01196f546d7 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95 - * $Id: spec_vnops.c,v 1.48 1997/10/16 20:32:29 phk Exp $ + * $Id: spec_vnops.c,v 1.49 1997/10/16 22:00:42 phk Exp $ */ #include <sys/param.h> @@ -58,7 +58,6 @@ #include <miscfs/specfs/specdev.h> -static int spec_ebadf __P((void)); static int spec_getattr __P((struct vop_getattr_args *)); static int spec_badop __P((void)); static int spec_strategy __P((struct vop_strategy_args *)); @@ -79,8 +78,8 @@ static int spec_getpages __P((struct vop_getpages_args *)); struct vnode *speclisth[SPECHSZ]; vop_t **spec_vnodeop_p; static struct vnodeopv_entry_desc spec_vnodeop_entries[] = { - { &vop_default_desc, (vop_t *) vn_default_error }, - { &vop_access_desc, (vop_t *) spec_ebadf }, + { &vop_default_desc, (vop_t *) vop_defaultop }, + { &vop_access_desc, (vop_t *) vop_ebadf }, { &vop_advlock_desc, (vop_t *) spec_advlock }, { &vop_bmap_desc, (vop_t *) spec_bmap }, { &vop_close_desc, (vop_t *) spec_close }, @@ -90,7 +89,7 @@ static struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_getpages_desc, (vop_t *) spec_getpages }, { &vop_inactive_desc, (vop_t *) spec_inactive }, { &vop_ioctl_desc, (vop_t *) spec_ioctl }, - { &vop_lease_desc, (vop_t *) nullop }, + { &vop_lease_desc, (vop_t *) vop_null }, { &vop_link_desc, (vop_t *) spec_badop }, { &vop_lookup_desc, (vop_t *) spec_lookup }, { &vop_mkdir_desc, (vop_t *) spec_badop }, @@ -103,11 +102,11 @@ static struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_readdir_desc, (vop_t *) spec_badop }, { &vop_readlink_desc, (vop_t *) spec_badop }, { &vop_reallocblks_desc, (vop_t *) spec_badop }, - { &vop_reclaim_desc, (vop_t *) nullop }, + { &vop_reclaim_desc, (vop_t *) vop_null }, { &vop_remove_desc, (vop_t *) spec_badop }, { &vop_rename_desc, (vop_t *) spec_badop }, { &vop_rmdir_desc, (vop_t *) spec_badop }, - { &vop_setattr_desc, (vop_t *) spec_ebadf }, + { &vop_setattr_desc, (vop_t *) vop_ebadf }, { &vop_strategy_desc, (vop_t *) spec_strategy }, { &vop_symlink_desc, (vop_t *) spec_badop }, { &vop_write_desc, (vop_t *) spec_write }, @@ -697,16 +696,6 @@ spec_advlock(ap) } /* - * Special device failed operation - */ -static int -spec_ebadf() -{ - - return (EBADF); -} - -/* * Special device bad operation */ static int |