Source-Changes-HG archive

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

[src/trunk]: src Remove unused M_MOUNT.



details:   https://anonhg.NetBSD.org/src/rev/95ccb0006e27
branches:  trunk
changeset: 763735:95ccb0006e27
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Apr 02 04:57:35 2011 +0000

description:
Remove unused M_MOUNT.

diffstat:

 external/cddl/osnet/sys/kern/vfs.c |  4 +---
 sys/kern/vfs_syscalls.c            |  6 ++----
 sys/sys/mount.h                    |  4 +---
 3 files changed, 4 insertions(+), 10 deletions(-)

diffs (63 lines):

diff -r b9e62c30f24e -r 95ccb0006e27 external/cddl/osnet/sys/kern/vfs.c
--- a/external/cddl/osnet/sys/kern/vfs.c        Sat Apr 02 04:45:24 2011 +0000
+++ b/external/cddl/osnet/sys/kern/vfs.c        Sat Apr 02 04:57:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs.c,v 1.3 2010/06/24 13:03:05 hannken Exp $  */
+/*     $NetBSD: vfs.c,v 1.4 2011/04/02 04:57:35 rmind Exp $    */
 
 /*-
  * Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -39,8 +39,6 @@
 #include <sys/priv.h>
 #include <lib/libkern/libkern.h>
 
-MALLOC_DECLARE(M_MOUNT);
-
 int
 lookupname(char *dirname, enum uio_seg seg, vnode_t **dirvpp, vnode_t **compvpp)
 {
diff -r b9e62c30f24e -r 95ccb0006e27 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sat Apr 02 04:45:24 2011 +0000
+++ b/sys/kern/vfs_syscalls.c   Sat Apr 02 04:57:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.420 2011/04/02 04:28:56 rmind Exp $ */
+/*     $NetBSD: vfs_syscalls.c,v 1.421 2011/04/02 04:57:35 rmind Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.420 2011/04/02 04:28:56 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.421 2011/04/02 04:57:35 rmind Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -112,8 +112,6 @@
 #include <nfs/nfs.h>
 #include <nfs/nfs_var.h>
 
-MALLOC_DEFINE(M_MOUNT, "mount", "vfs mount struct");
-
 static int change_flags(struct vnode *, u_long, struct lwp *);
 static int change_mode(struct vnode *, int, struct lwp *l);
 static int change_owner(struct vnode *, uid_t, gid_t, struct lwp *, int);
diff -r b9e62c30f24e -r 95ccb0006e27 sys/sys/mount.h
--- a/sys/sys/mount.h   Sat Apr 02 04:45:24 2011 +0000
+++ b/sys/sys/mount.h   Sat Apr 02 04:57:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.h,v 1.198 2011/04/02 04:28:57 rmind Exp $        */
+/*     $NetBSD: mount.h,v 1.199 2011/04/02 04:57:35 rmind Exp $        */
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -375,8 +375,6 @@
 };
 
 #ifdef _KERNEL
-#include <sys/mallocvar.h>
-MALLOC_DECLARE(M_MOUNT);
 
 /*
  * exported VFS interface (see vfssubr(9))



Home | Main Index | Thread Index | Old Index