diff options
author | phk <phk@FreeBSD.org> | 1999-08-13 10:53:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-13 10:53:58 +0000 |
commit | 32e3f043bb6d389bf3e42da37b08431f98758c0c (patch) | |
tree | e4be597f5aae65eb8ff459b2543af154b667ceb8 /sys | |
parent | 3e46cd5b3633f6099768f3979ce2bed84ab3f537 (diff) | |
download | FreeBSD-src-32e3f043bb6d389bf3e42da37b08431f98758c0c.zip FreeBSD-src-32e3f043bb6d389bf3e42da37b08431f98758c0c.tar.gz |
Remove spec_getattr(), which as far as I can tell can never be called from the current code-paths, and if it were, would panic on any unmounted bdev.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 95a25f4..e683dab 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/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.92 1999/08/13 10:10:10 phk Exp $ + * $Id: spec_vnops.c,v 1.93 1999/08/13 10:29:23 phk Exp $ */ #include <sys/param.h> @@ -61,7 +61,6 @@ static int spec_bmap __P((struct vop_bmap_args *)); static int spec_close __P((struct vop_close_args *)); static int spec_freeblks __P((struct vop_freeblks_args *)); static int spec_fsync __P((struct vop_fsync_args *)); -static int spec_getattr __P((struct vop_getattr_args *)); static int spec_getpages __P((struct vop_getpages_args *)); static int spec_inactive __P((struct vop_inactive_args *)); static int spec_ioctl __P((struct vop_ioctl_args *)); @@ -83,7 +82,6 @@ static struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_create_desc, (vop_t *) spec_badop }, { &vop_freeblks_desc, (vop_t *) spec_freeblks }, { &vop_fsync_desc, (vop_t *) spec_fsync }, - { &vop_getattr_desc, (vop_t *) spec_getattr }, { &vop_getpages_desc, (vop_t *) spec_getpages }, { &vop_inactive_desc, (vop_t *) spec_inactive }, { &vop_ioctl_desc, (vop_t *) spec_ioctl }, diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 95a25f4..e683dab 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.92 1999/08/13 10:10:10 phk Exp $ + * $Id: spec_vnops.c,v 1.93 1999/08/13 10:29:23 phk Exp $ */ #include <sys/param.h> @@ -61,7 +61,6 @@ static int spec_bmap __P((struct vop_bmap_args *)); static int spec_close __P((struct vop_close_args *)); static int spec_freeblks __P((struct vop_freeblks_args *)); static int spec_fsync __P((struct vop_fsync_args *)); -static int spec_getattr __P((struct vop_getattr_args *)); static int spec_getpages __P((struct vop_getpages_args *)); static int spec_inactive __P((struct vop_inactive_args *)); static int spec_ioctl __P((struct vop_ioctl_args *)); @@ -83,7 +82,6 @@ static struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_create_desc, (vop_t *) spec_badop }, { &vop_freeblks_desc, (vop_t *) spec_freeblks }, { &vop_fsync_desc, (vop_t *) spec_fsync }, - { &vop_getattr_desc, (vop_t *) spec_getattr }, { &vop_getpages_desc, (vop_t *) spec_getpages }, { &vop_inactive_desc, (vop_t *) spec_inactive }, { &vop_ioctl_desc, (vop_t *) spec_ioctl }, |