Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/filecorefs remove unused



details:   https://anonhg.NetBSD.org/src/rev/60904b73599b
branches:  trunk
changeset: 790768:60904b73599b
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 17:14:48 2013 +0000

description:
remove unused

diffstat:

 sys/fs/filecorefs/filecore_lookup.c |  6 ++----
 sys/fs/filecorefs/filecore_vnops.c  |  9 +++------
 2 files changed, 5 insertions(+), 10 deletions(-)

diffs (85 lines):

diff -r 6f33675d552a -r 60904b73599b sys/fs/filecorefs/filecore_lookup.c
--- a/sys/fs/filecorefs/filecore_lookup.c       Sun Oct 20 17:14:05 2013 +0000
+++ b/sys/fs/filecorefs/filecore_lookup.c       Sun Oct 20 17:14:48 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecore_lookup.c,v 1.17 2012/12/20 08:03:42 hannken Exp $     */
+/*     $NetBSD: filecore_lookup.c,v 1.18 2013/10/20 17:14:48 christos Exp $    */
 
 /*-
  * Copyright (c) 1989, 1993, 1994 The Regents of the University of California.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_lookup.c,v 1.17 2012/12/20 08:03:42 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_lookup.c,v 1.18 2013/10/20 17:14:48 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/namei.h>
@@ -127,7 +127,6 @@
        } */ *ap = v;
        struct vnode *vdp;              /* vnode for directory being searched */
        struct filecore_node *dp;       /* inode for directory being searched */
-       struct filecore_mnt *fcmp;      /* file system that directory is in */
        struct buf *bp;                 /* a buffer of directory entries */
        struct filecore_direntry *de;
        int numdirpasses;               /* strategy for directory search */
@@ -150,7 +149,6 @@
        *vpp = NULL;
        vdp = ap->a_dvp;
        dp = VTOI(vdp);
-       fcmp = dp->i_mnt;
 
        /*
         * Check accessiblity of directory.
diff -r 6f33675d552a -r 60904b73599b sys/fs/filecorefs/filecore_vnops.c
--- a/sys/fs/filecorefs/filecore_vnops.c        Sun Oct 20 17:14:05 2013 +0000
+++ b/sys/fs/filecorefs/filecore_vnops.c        Sun Oct 20 17:14:48 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecore_vnops.c,v 1.38 2013/06/23 07:28:36 dholland Exp $     */
+/*     $NetBSD: filecore_vnops.c,v 1.39 2013/10/20 17:14:48 christos Exp $     */
 
 /*-
  * Copyright (c) 1994 The Regents of the University of California.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.38 2013/06/23 07:28:36 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_vnops.c,v 1.39 2013/10/20 17:14:48 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -204,7 +204,7 @@
        struct filecore_node *ip = VTOI(vp);
        struct filecore_mnt *fcmp;
        struct buf *bp;
-       daddr_t lbn, rablock;
+       daddr_t lbn;
        off_t diff;
        int error = 0;
        long size, n, on;
@@ -248,7 +248,6 @@
                if (diff < n)
                        n = diff;
                size = filecore_blksize(fcmp, ip, lbn);
-               rablock = lbn + 1;
                if (ip->i_dirent.attr & FILECORE_ATTR_DIR) {
                        error = filecore_dbread(ip, &bp);
                        on = uio->uio_offset;
@@ -294,7 +293,6 @@
        struct uio *uio = ap->a_uio;
        struct vnode *vdp = ap->a_vp;
        struct filecore_node *dp;
-       struct filecore_mnt *fcmp;
        struct buf *bp = NULL;
        struct dirent *de;
        struct filecore_direntry *dep = NULL;
@@ -315,7 +313,6 @@
        uiooff = uio->uio_offset;
 
        *ap->a_eofflag = 0;
-       fcmp = dp->i_mnt;
 
        error = filecore_dbread(dp, &bp);
        if (error) {



Home | Main Index | Thread Index | Old Index