Source-Changes-HG archive

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

[src/trunk]: src Remove now obsolete operation vcache_remove().



details:   https://anonhg.NetBSD.org/src/rev/9b52b3056142
branches:  trunk
changeset: 347301:9b52b3056142
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Aug 20 12:37:06 2016 +0000

description:
Remove now obsolete operation vcache_remove().

Welcome to 7.99.36

diffstat:

 distrib/sets/lists/comp/mi                             |   8 ++--
 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c |   1 -
 share/man/man9/Makefile                                |   3 +-
 share/man/man9/vnode.9                                 |  18 +-----------
 sys/coda/coda_vnops.c                                  |   7 +---
 sys/fs/adosfs/advnops.c                                |   5 +--
 sys/fs/cd9660/cd9660_node.c                            |   9 +----
 sys/fs/efs/efs_vnops.c                                 |   5 +--
 sys/fs/filecorefs/filecore_node.c                      |   8 +----
 sys/fs/hfs/hfs_vnops.c                                 |   7 +---
 sys/fs/msdosfs/msdosfs_denode.c                        |   8 +----
 sys/fs/nilfs/nilfs_vnops.c                             |   7 +---
 sys/fs/ntfs/ntfs_vnops.c                               |   6 +--
 sys/fs/ptyfs/ptyfs_vnops.c                             |   6 +--
 sys/fs/puffs/puffs_node.c                              |   5 +--
 sys/fs/smbfs/smbfs_node.c                              |   6 +--
 sys/fs/sysvbfs/sysvbfs_vnops.c                         |   6 +--
 sys/fs/tmpfs/tmpfs_vnops.c                             |   5 +--
 sys/fs/udf/udf_vnops.c                                 |   7 +---
 sys/fs/union/union_subr.c                              |   6 +--
 sys/fs/v7fs/v7fs_vnops.c                               |   6 +--
 sys/kern/vfs_vnode.c                                   |  27 +----------------
 sys/miscfs/fdesc/fdesc_vnops.c                         |   5 +--
 sys/miscfs/genfs/layer_vnops.c                         |   5 +--
 sys/miscfs/kernfs/kernfs_vnops.c                       |   5 +--
 sys/miscfs/procfs/procfs_vnops.c                       |   5 +--
 sys/miscfs/specfs/spec_vnops.c                         |   7 ++--
 sys/nfs/nfs_node.c                                     |   6 +--
 sys/rump/librump/rumpvfs/rumpfs.c                      |   5 +--
 sys/sys/param.h                                        |   4 +-
 sys/sys/vnode.h                                        |   3 +-
 sys/ufs/chfs/chfs_vnops.c                              |   3 +-
 sys/ufs/lfs/ulfs_inode.c                               |   9 +----
 sys/ufs/ufs/ufs_inode.c                                |   9 +----
 34 files changed, 65 insertions(+), 167 deletions(-)

diffs (truncated from 928 to 300 lines):

diff -r e669c5973191 -r 9b52b3056142 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sat Aug 20 12:33:57 2016 +0000
+++ b/distrib/sets/lists/comp/mi        Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2057 2016/08/20 11:34:49 christos Exp $
+#      $NetBSD: mi,v 1.2058 2016/08/20 12:37:06 hannken Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -11111,7 +11111,7 @@
 ./usr/share/man/cat9/vcache_new.0              comp-sys-catman         .cat
 ./usr/share/man/cat9/vcache_rekey_enter.0      comp-sys-catman         .cat
 ./usr/share/man/cat9/vcache_rekey_exit.0       comp-sys-catman         .cat
-./usr/share/man/cat9/vcache_remove.0           comp-sys-catman         .cat
+./usr/share/man/cat9/vcache_remove.0           comp-sys-catman         obsolete
 ./usr/share/man/cat9/vcons.0                   comp-sys-catman         .cat
 ./usr/share/man/cat9/vcount.0                  comp-obsolete           obsolete
 ./usr/share/man/cat9/vdead_check.0             comp-sys-catman         .cat
@@ -18226,7 +18226,7 @@
 ./usr/share/man/html9/vcache_new.html          comp-sys-htmlman        html
 ./usr/share/man/html9/vcache_rekey_enter.html  comp-sys-htmlman        html
 ./usr/share/man/html9/vcache_rekey_exit.html   comp-sys-htmlman        html
-./usr/share/man/html9/vcache_remove.html       comp-sys-htmlman        html
+./usr/share/man/html9/vcache_remove.html       comp-sys-htmlman        obsolete
 ./usr/share/man/html9/vcons.html               comp-sys-htmlman        html
 ./usr/share/man/html9/vcount.html              comp-obsolete   obsolete
 ./usr/share/man/html9/vdead_check.html         comp-sys-htmlman        html
@@ -25575,7 +25575,7 @@
 ./usr/share/man/man9/vcache_new.9              comp-sys-man            .man
 ./usr/share/man/man9/vcache_rekey_enter.9      comp-sys-man            .man
 ./usr/share/man/man9/vcache_rekey_exit.9       comp-sys-man            .man
-./usr/share/man/man9/vcache_remove.9           comp-sys-man            .man
+./usr/share/man/man9/vcache_remove.9           comp-sys-man            obsolete
 ./usr/share/man/man9/vcons.9                   comp-sys-man            .man
 ./usr/share/man/man9/vcount.9                  comp-obsolete           obsolete
 ./usr/share/man/man9/vdead_check.9             comp-sys-man            .man
diff -r e669c5973191 -r 9b52b3056142 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c    Sat Aug 20 12:33:57 2016 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c    Sat Aug 20 12:37:06 2016 +0000
@@ -1057,7 +1057,6 @@
        mutex_enter(&zp->z_lock);
        vp = ZTOV(zp);
        if (vp != NULL) {
-               vcache_remove(vp->v_mount, &zp->z_id, sizeof(zp->z_id));
                genfs_node_destroy(vp);
                /*
                 * To interlock with zfs_sync().
diff -r e669c5973191 -r 9b52b3056142 share/man/man9/Makefile
--- a/share/man/man9/Makefile   Sat Aug 20 12:33:57 2016 +0000
+++ b/share/man/man9/Makefile   Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.396 2016/07/12 03:39:55 knakahara Exp $
+#       $NetBSD: Makefile,v 1.397 2016/08/20 12:37:06 hannken Exp $
 
 #      Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -957,7 +957,6 @@
        vnode.9 vcache_new.9 \
        vnode.9 vcache_rekey_enter.9 \
        vnode.9 vcache_rekey_exit.9 \
-       vnode.9 vcache_remove.9 \
        vnode.9 vrecycle.9 \
        vnode.9 vgone.9 \
        vnode.9 vgonel.9 \
diff -r e669c5973191 -r 9b52b3056142 share/man/man9/vnode.9
--- a/share/man/man9/vnode.9    Sat Aug 20 12:33:57 2016 +0000
+++ b/share/man/man9/vnode.9    Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vnode.9,v 1.70 2015/07/17 06:45:55 wiz Exp $
+.\"     $NetBSD: vnode.9,v 1.71 2016/08/20 12:37:06 hannken Exp $
 .\"
 .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -43,7 +43,6 @@
 .Nm vcache_new ,
 .Nm vcache_rekey_enter ,
 .Nm vcache_rekey_exit ,
-.Nm vcache_remove ,
 .Nm vrecycle ,
 .Nm vgone ,
 .Nm vgonel ,
@@ -85,8 +84,6 @@
 .Fn vcache_rekey_enter "struct mount *mp" "struct vnode *vp" "const void *old_key" "size_t old_key_len" "const void *new_key" "size_t new_key_len"
 .Ft void
 .Fn vcache_rekey_exit "struct mount *mp" "struct vnode *vp" "const void *old_key" "size_t old_key_len" "const void *new_key" "size_t new_key_len"
-.Ft void
-.Fn vcache_remove "struct mount *mp" "const void *key" "size_t key_len"
 .Ft int
 .Fn vrecycle "struct vnode *vp"
 .Ft void
@@ -709,19 +706,6 @@
 .It Fn vcache_rekey_exit "mp" "vp" "old_key" "old_key_len" "new_key" "new_key_len"
 Finish rename after calling
 .Fn vcache_rekey_enter .
-.It Fn vcache_remove "mp" "key" "key_len"
-Remove a vnode from the cache.
-Must be called when a file system reclaims a vnode.
-.Pp
-The argument
-.Fa mp
-is the mount point for the file system this file resides in.
-.Pp
-The arguments
-.Fa key
-and
-.Fa key_len
-uniquely identify the file in the file system.
 .It Fn vrecycle "vp"
 Recycle the referenced vnode
 .Fa vp
diff -r e669c5973191 -r 9b52b3056142 sys/coda/coda_vnops.c
--- a/sys/coda/coda_vnops.c     Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/coda/coda_vnops.c     Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vnops.c,v 1.102 2015/04/20 23:03:07 riastradh Exp $       */
+/*     $NetBSD: coda_vnops.c,v 1.103 2016/08/20 12:37:06 hannken Exp $ */
 
 /*
  *
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.102 2015/04/20 23:03:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.103 2016/08/20 12:37:06 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1673,9 +1673,6 @@
        cp->c_symlen = 0;
     }
 
-    /* Remove it from the table so it can't be found. */
-    vcache_remove(vp->v_mount, &cp->c_fid, sizeof(CodaFid));
-
     mutex_enter(vp->v_interlock);
     mutex_enter(&cp->c_lock);
     SET_VTOC(vp) = NULL;
diff -r e669c5973191 -r 9b52b3056142 sys/fs/adosfs/advnops.c
--- a/sys/fs/adosfs/advnops.c   Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/adosfs/advnops.c   Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: advnops.c,v 1.47 2015/04/20 23:03:07 riastradh Exp $   */
+/*     $NetBSD: advnops.c,v 1.48 2016/08/20 12:37:06 hannken Exp $     */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.47 2015/04/20 23:03:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.48 2016/08/20 12:37:06 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -879,7 +879,6 @@
 #endif
        vp = sp->a_vp;
        ap = VTOA(vp);
-       vcache_remove(vp->v_mount, &ap->block, sizeof(ap->block));
        if (vp->v_type == VDIR && ap->tab)
                free(ap->tab, M_ANODE);
        else if (vp->v_type == VLNK && ap->slinkto)
diff -r e669c5973191 -r 9b52b3056142 sys/fs/cd9660/cd9660_node.c
--- a/sys/fs/cd9660/cd9660_node.c       Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/cd9660/cd9660_node.c       Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660_node.c,v 1.34 2014/11/10 18:46:33 maxv Exp $    */
+/*     $NetBSD: cd9660_node.c,v 1.35 2016/08/20 12:37:06 hannken Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1994
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_node.c,v 1.34 2014/11/10 18:46:33 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_node.c,v 1.35 2016/08/20 12:37:06 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -131,15 +131,10 @@
                struct lwp *a_l;
        } */ *ap = v;
        struct vnode *vp = ap->a_vp;
-       struct iso_node *ip = VTOI(vp);
 
        if (prtactive && vp->v_usecount > 1)
                vprint("cd9660_reclaim: pushing active", vp);
        /*
-        * Remove the inode from the vnode cache.
-        */
-       vcache_remove(vp->v_mount, &ip->i_number, sizeof(ip->i_number));
-       /*
         * Purge old data structures associated with the inode.
         */
        genfs_node_destroy(vp);
diff -r e669c5973191 -r 9b52b3056142 sys/fs/efs/efs_vnops.c
--- a/sys/fs/efs/efs_vnops.c    Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/efs/efs_vnops.c    Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efs_vnops.c,v 1.35 2016/07/07 06:55:42 msaitoh Exp $   */
+/*     $NetBSD: efs_vnops.c,v 1.36 2016/08/20 12:37:07 hannken Exp $   */
 
 /*
  * Copyright (c) 2006 Stephen M. Rumble <rumble%ephemeral.org@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efs_vnops.c,v 1.35 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efs_vnops.c,v 1.36 2016/08/20 12:37:07 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -583,7 +583,6 @@
        struct vnode *vp = ap->a_vp;
        struct efs_inode *eip = EFS_VTOI(vp);
 
-       vcache_remove(vp->v_mount, &eip->ei_number, sizeof(eip->ei_number));
        genfs_node_destroy(vp);
        pool_put(&efs_inode_pool, eip);
        vp->v_data = NULL;
diff -r e669c5973191 -r 9b52b3056142 sys/fs/filecorefs/filecore_node.c
--- a/sys/fs/filecorefs/filecore_node.c Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/filecorefs/filecore_node.c Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecore_node.c,v 1.27 2014/10/04 13:27:24 hannken Exp $       */
+/*     $NetBSD: filecore_node.c,v 1.28 2016/08/20 12:37:07 hannken Exp $       */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1994
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: filecore_node.c,v 1.27 2014/10/04 13:27:24 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: filecore_node.c,v 1.28 2016/08/20 12:37:07 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -246,10 +246,6 @@
 
        if (prtactive && vp->v_usecount > 1)
                vprint("filecore_reclaim: pushing active", vp);
-       /*
-        * Remove the inode from the vnode cache.
-        */
-       vcache_remove(vp->v_mount, &ip->i_number, sizeof(ip->i_number));
 
        /*
         * Purge old data structures associated with the inode.
diff -r e669c5973191 -r 9b52b3056142 sys/fs/hfs/hfs_vnops.c
--- a/sys/fs/hfs/hfs_vnops.c    Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/hfs/hfs_vnops.c    Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hfs_vnops.c,v 1.32 2015/06/21 13:50:34 maxv Exp $      */
+/*     $NetBSD: hfs_vnops.c,v 1.33 2016/08/20 12:37:07 hannken Exp $   */
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hfs_vnops.c,v 1.32 2015/06/21 13:50:34 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hfs_vnops.c,v 1.33 2016/08/20 12:37:07 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -1030,9 +1030,6 @@
        vp = ap->a_vp;
        hp = VTOH(vp);
 
-       KASSERT(hp->h_key.hnk_cnid == hp->h_rec.u.cnid);
-       vcache_remove(vp->v_mount, &hp->h_key, sizeof(hp->h_key));
-
        /* Decrement the reference count to the volume's device. */
        if (hp->h_devvp) {
                vrele(hp->h_devvp);
diff -r e669c5973191 -r 9b52b3056142 sys/fs/msdosfs/msdosfs_denode.c
--- a/sys/fs/msdosfs/msdosfs_denode.c   Sat Aug 20 12:33:57 2016 +0000
+++ b/sys/fs/msdosfs/msdosfs_denode.c   Sat Aug 20 12:37:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_denode.c,v 1.51 2015/03/28 19:24:05 maxv Exp $ */
+/*     $NetBSD: msdosfs_denode.c,v 1.52 2016/08/20 12:37:07 hannken Exp $      */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.51 2015/03/28 19:24:05 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.52 2016/08/20 12:37:07 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -549,10 +549,6 @@



Home | Main Index | Thread Index | Old Index