Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Remove unused fss_softc member sc_bs_size.
details: https://anonhg.NetBSD.org/src/rev/f7857df6d63e
branches: trunk
changeset: 753637:f7857df6d63e
user: hannken <hannken%NetBSD.org@localhost>
date: Mon Apr 05 09:30:46 2010 +0000
description:
Remove unused fss_softc member sc_bs_size.
diffstat:
sys/dev/fss.c | 9 ++-------
sys/dev/fssvar.h | 3 +--
2 files changed, 3 insertions(+), 9 deletions(-)
diffs (54 lines):
diff -r 616d053b0b51 -r f7857df6d63e sys/dev/fss.c
--- a/sys/dev/fss.c Mon Apr 05 08:03:41 2010 +0000
+++ b/sys/dev/fss.c Mon Apr 05 09:30:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fss.c,v 1.65 2009/10/17 10:29:29 hannken Exp $ */
+/* $NetBSD: fss.c,v 1.66 2010/04/05 09:30:46 hannken Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.65 2009/10/17 10:29:29 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.66 2010/04/05 09:30:46 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -579,7 +579,6 @@
int error, bits, fsbsize;
struct timespec ts;
struct partinfo dpart;
- struct vattr va;
/* nd -> nd2 to reduce mistakes while updating only some namei calls */
struct nameidata nd2;
struct vnode *vp;
@@ -686,10 +685,6 @@
return EINVAL;
if (sc->sc_bs_vp->v_type == VREG) {
- error = VOP_GETATTR(sc->sc_bs_vp, &va, l->l_cred);
- if (error != 0)
- return error;
- sc->sc_bs_size = va.va_size;
fsbsize = sc->sc_bs_vp->v_mount->mnt_stat.f_iosize;
if (fsbsize & (fsbsize-1)) /* No power of two */
return EINVAL;
diff -r 616d053b0b51 -r f7857df6d63e sys/dev/fssvar.h
--- a/sys/dev/fssvar.h Mon Apr 05 08:03:41 2010 +0000
+++ b/sys/dev/fssvar.h Mon Apr 05 09:30:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fssvar.h,v 1.23 2008/09/17 14:49:25 hannken Exp $ */
+/* $NetBSD: fssvar.h,v 1.24 2010/04/05 09:30:46 hannken Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -138,7 +138,6 @@
struct timeval sc_time; /* Time this snapshot was taken */
dev_t sc_bdev; /* Underlying block device */
struct vnode *sc_bs_vp; /* Our backing store */
- off_t sc_bs_size; /* Its size in bytes */
int sc_bs_bshift; /* Shift of backing store block */
u_int32_t sc_bs_bmask; /* Mask of backing store block */
struct lwp *sc_bs_lwp; /* Our kernel thread */
Home |
Main Index |
Thread Index |
Old Index