Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs Move declaration of ufs_hashlock into <ufs/ufs_exter...



details:   https://anonhg.NetBSD.org/src/rev/b9e2084b8626
branches:  trunk
changeset: 747388:b9e2084b8626
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Sep 13 05:17:36 2009 +0000

description:
Move declaration of ufs_hashlock into <ufs/ufs_extern.h> from each c source.

diffstat:

 sys/ufs/ext2fs/ext2fs_vfsops.c |  6 ++----
 sys/ufs/ffs/ffs_vfsops.c       |  6 ++----
 sys/ufs/lfs/lfs_alloc.c        |  6 ++----
 sys/ufs/lfs/lfs_syscalls.c     |  5 ++---
 sys/ufs/lfs/lfs_vfsops.c       |  6 ++----
 sys/ufs/ufs/ufs_extern.h       |  3 ++-
 6 files changed, 12 insertions(+), 20 deletions(-)

diffs (150 lines):

diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/ext2fs/ext2fs_vfsops.c
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c    Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c    Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_vfsops.c,v 1.149 2009/09/12 02:50:38 tsutsui Exp $      */
+/*     $NetBSD: ext2fs_vfsops.c,v 1.150 2009/09/13 05:17:36 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.149 2009/09/12 02:50:38 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.150 2009/09/13 05:17:36 tsutsui Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -109,8 +109,6 @@
 
 MODULE(MODULE_CLASS_VFS, ext2fs, "ffs");
 
-extern kmutex_t ufs_hashlock;
-
 int ext2fs_sbupdate(struct ufsmount *, int);
 static int ext2fs_checksb(struct ext2fs *, int);
 static void ext2fs_set_inode_guid(struct inode *);
diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.250 2009/07/31 20:58:50 pooka Exp $   */
+/*     $NetBSD: ffs_vfsops.c,v 1.251 2009/09/13 05:17:36 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.250 2009/07/31 20:58:50 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.251 2009/09/13 05:17:36 tsutsui Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -117,8 +117,6 @@
 /* how many times ffs_init() was called */
 int ffs_initcount = 0;
 
-extern kmutex_t ufs_hashlock;
-
 extern const struct vnodeopv_desc ffs_vnodeop_opv_desc;
 extern const struct vnodeopv_desc ffs_specop_opv_desc;
 extern const struct vnodeopv_desc ffs_fifoop_opv_desc;
diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/lfs/lfs_alloc.c
--- a/sys/ufs/lfs/lfs_alloc.c   Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/lfs/lfs_alloc.c   Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_alloc.c,v 1.107 2008/04/28 20:24:11 martin Exp $   */
+/*     $NetBSD: lfs_alloc.c,v 1.108 2009/09/13 05:17:37 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.107 2008/04/28 20:24:11 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_alloc.c,v 1.108 2009/09/13 05:17:37 tsutsui Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -88,8 +88,6 @@
 #include <ufs/lfs/lfs.h>
 #include <ufs/lfs/lfs_extern.h>
 
-extern kmutex_t ufs_hashlock;
-
 /* Constants for inode free bitmap */
 #define BMSHIFT 5      /* 2 ** 5 = 32 */
 #define BMMASK  ((1 << BMSHIFT) - 1)
diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/lfs/lfs_syscalls.c
--- a/sys/ufs/lfs/lfs_syscalls.c        Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/lfs/lfs_syscalls.c        Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_syscalls.c,v 1.134 2009/01/11 02:45:56 christos Exp $      */
+/*     $NetBSD: lfs_syscalls.c,v 1.135 2009/09/13 05:17:37 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007, 2008
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.134 2009/01/11 02:45:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.135 2009/09/13 05:17:37 tsutsui Exp $");
 
 #ifndef LFS
 # define LFS           /* for prototypes in syscallargs.h */
@@ -1018,7 +1018,6 @@
  * we lfs_vref, and it is the caller's responsibility to lfs_vunref
  * when finished.
  */
-extern kmutex_t ufs_hashlock;
 
 int
 lfs_fasthashget(dev_t dev, ino_t ino, struct vnode **vpp)
diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vfsops.c,v 1.277 2009/08/05 15:39:57 pooka Exp $   */
+/*     $NetBSD: lfs_vfsops.c,v 1.278 2009/09/13 05:17:37 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.277 2009/08/05 15:39:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.278 2009/09/13 05:17:37 tsutsui Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_lfs.h"
@@ -1251,8 +1251,6 @@
        return (error);
 }
 
-extern kmutex_t ufs_hashlock;
-
 /*
  * Look up an LFS dinode number to find its incore vnode.  If not already
  * in core, read it in from the specified device.  Return the inode locked.
diff -r ccea5b4ba7c4 -r b9e2084b8626 sys/ufs/ufs/ufs_extern.h
--- a/sys/ufs/ufs/ufs_extern.h  Sun Sep 13 02:53:17 2009 +0000
+++ b/sys/ufs/ufs/ufs_extern.h  Sun Sep 13 05:17:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_extern.h,v 1.61 2009/02/22 20:28:07 ad Exp $       */
+/*     $NetBSD: ufs_extern.h,v 1.62 2009/09/13 05:17:37 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -175,5 +175,6 @@
 __END_DECLS
 
 extern kmutex_t ufs_ihash_lock;
+extern kmutex_t ufs_hashlock;
 
 #endif /* !_UFS_UFS_EXTERN_H_ */



Home | Main Index | Thread Index | Old Index