Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Fix nested extern declaration of prtactive.
details: https://anonhg.NetBSD.org/src/rev/552da8c7e697
branches: trunk
changeset: 503487:552da8c7e697
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Feb 07 12:40:43 2001 +0000
description:
Fix nested extern declaration of prtactive.
diffstat:
sys/msdosfs/msdosfs_denode.c | 6 +++---
sys/nfs/nfs_node.c | 6 +++---
sys/ufs/ext2fs/ext2fs_inode.c | 5 +++--
sys/ufs/ext2fs/ext2fs_vnops.c | 4 ++--
sys/ufs/ufs/ufs_inode.c | 6 +++---
5 files changed, 14 insertions(+), 13 deletions(-)
diffs (153 lines):
diff -r 5563b9bb2862 -r 552da8c7e697 sys/msdosfs/msdosfs_denode.c
--- a/sys/msdosfs/msdosfs_denode.c Wed Feb 07 12:34:59 2001 +0000
+++ b/sys/msdosfs/msdosfs_denode.c Wed Feb 07 12:40:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_denode.c,v 1.48 2001/01/01 00:25:41 chs Exp $ */
+/* $NetBSD: msdosfs_denode.c,v 1.49 2001/02/07 12:40:43 tsutsui Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -76,6 +76,8 @@
struct pool msdosfs_denode_pool;
+extern int prtactive;
+
static struct denode *msdosfs_hashget __P((dev_t, u_long, u_long));
static void msdosfs_hashins __P((struct denode *));
static void msdosfs_hashrem __P((struct denode *));
@@ -563,7 +565,6 @@
} */ *ap = v;
struct vnode *vp = ap->a_vp;
struct denode *dep = VTODE(vp);
- extern int prtactive;
#ifdef MSDOSFS_DEBUG
printf("msdosfs_reclaim(): dep %p, file %s, refcnt %ld\n",
@@ -604,7 +605,6 @@
struct vnode *vp = ap->a_vp;
struct denode *dep = VTODE(vp);
int error = 0;
- extern int prtactive;
#ifdef MSDOSFS_DEBUG
printf("msdosfs_inactive(): dep %p, de_Name[0] %x\n", dep, dep->de_Name[0]);
diff -r 5563b9bb2862 -r 552da8c7e697 sys/nfs/nfs_node.c
--- a/sys/nfs/nfs_node.c Wed Feb 07 12:34:59 2001 +0000
+++ b/sys/nfs/nfs_node.c Wed Feb 07 12:40:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_node.c,v 1.40 2001/02/06 16:25:48 fvdl Exp $ */
+/* $NetBSD: nfs_node.c,v 1.41 2001/02/07 12:40:44 tsutsui Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -66,6 +66,8 @@
struct pool nfs_node_pool; /* memory pool for nfs nodes */
struct pool nfs_vattr_pool; /* memory pool for nfs vattrs */
+extern int prtactive;
+
#define TRUE 1
#define FALSE 0
@@ -205,7 +207,6 @@
struct sillyrename *sp;
struct proc *p = ap->a_p;
struct vnode *vp = ap->a_vp;
- extern int prtactive;
np = VTONFS(vp);
if (prtactive && vp->v_usecount != 0)
@@ -247,7 +248,6 @@
struct vnode *vp = ap->a_vp;
struct nfsnode *np = VTONFS(vp);
struct nfsmount *nmp = VFSTONFS(vp->v_mount);
- extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("nfs_reclaim: pushing active", vp);
diff -r 5563b9bb2862 -r 552da8c7e697 sys/ufs/ext2fs/ext2fs_inode.c
--- a/sys/ufs/ext2fs/ext2fs_inode.c Wed Feb 07 12:34:59 2001 +0000
+++ b/sys/ufs/ext2fs/ext2fs_inode.c Wed Feb 07 12:40:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_inode.c,v 1.21 2000/11/27 08:39:53 chs Exp $ */
+/* $NetBSD: ext2fs_inode.c,v 1.22 2001/02/07 12:40:44 tsutsui Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@@ -57,6 +57,8 @@
#include <ufs/ext2fs/ext2fs.h>
#include <ufs/ext2fs/ext2fs_extern.h>
+extern int prtactive;
+
static int ext2fs_indirtrunc __P((struct inode *, ufs_daddr_t, ufs_daddr_t,
ufs_daddr_t, int, long *));
@@ -76,7 +78,6 @@
struct proc *p = ap->a_p;
struct timespec ts;
int error = 0;
- extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("ext2fs_inactive: pushing active", vp);
diff -r 5563b9bb2862 -r 552da8c7e697 sys/ufs/ext2fs/ext2fs_vnops.c
--- a/sys/ufs/ext2fs/ext2fs_vnops.c Wed Feb 07 12:34:59 2001 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vnops.c Wed Feb 07 12:40:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ext2fs_vnops.c,v 1.31 2001/01/22 12:17:42 jdolecek Exp $ */
+/* $NetBSD: ext2fs_vnops.c,v 1.32 2001/02/07 12:40:44 tsutsui Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@@ -72,6 +72,7 @@
#include <ufs/ext2fs/ext2fs_extern.h>
#include <ufs/ext2fs/ext2fs_dir.h>
+extern int prtactive;
static int ext2fs_chmod
__P((struct vnode *, int, struct ucred *, struct proc *));
@@ -1392,7 +1393,6 @@
} */ *ap = v;
struct vnode *vp = ap->a_vp;
struct inode *ip;
- extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("ext2fs_reclaim: pushing active", vp);
diff -r 5563b9bb2862 -r 552da8c7e697 sys/ufs/ufs/ufs_inode.c
--- a/sys/ufs/ufs/ufs_inode.c Wed Feb 07 12:34:59 2001 +0000
+++ b/sys/ufs/ufs/ufs_inode.c Wed Feb 07 12:40:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_inode.c,v 1.18 2000/12/03 03:57:24 chs Exp $ */
+/* $NetBSD: ufs_inode.c,v 1.19 2001/02/07 12:40:45 tsutsui Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -57,6 +57,8 @@
#include <uvm/uvm.h>
+extern int prtactive;
+
/*
* Last reference to an inode. If necessary, write or delete it.
*/
@@ -72,7 +74,6 @@
struct inode *ip = VTOI(vp);
struct proc *p = ap->a_p;
int mode, error = 0;
- extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("ufs_inactive: pushing active", vp);
@@ -119,7 +120,6 @@
struct proc *p;
{
struct inode *ip;
- extern int prtactive;
if (prtactive && vp->v_usecount != 0)
vprint("ufs_reclaim: pushing active", vp);
Home |
Main Index |
Thread Index |
Old Index