summaryrefslogtreecommitdiffstats
path: root/sys/ufs/lfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
committerphk <phk@FreeBSD.org>1997-10-12 20:26:33 +0000
commit36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5 (patch)
treee21c1d8330cbd5fba838afec549f8e4f0f66e451 /sys/ufs/lfs
parent8ae70d2227594ff4a283453ca3cc3031eb78c14b (diff)
downloadFreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.zip
FreeBSD-src-36e7a51ea1dedf0fc860ff3106aee1db1ab3b1f5.tar.gz
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
Diffstat (limited to 'sys/ufs/lfs')
-rw-r--r--sys/ufs/lfs/lfs_extern.h5
-rw-r--r--sys/ufs/lfs/lfs_vfsops.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/ufs/lfs/lfs_extern.h b/sys/ufs/lfs/lfs_extern.h
index 7da63e2..acab203 100644
--- a/sys/ufs/lfs/lfs_extern.h
+++ b/sys/ufs/lfs/lfs_extern.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs_extern.h 8.6 (Berkeley) 5/8/95
- * $Id: lfs_extern.h,v 1.15 1997/03/23 00:45:15 bde Exp $
+ * $Id: lfs_extern.h,v 1.16 1997/10/10 18:17:20 phk Exp $
*/
#ifndef _UFS_LFS_LFS_EXTERN_H_
@@ -39,6 +39,9 @@
#ifdef KERNEL
+MALLOC_DECLARE(M_LFSNODE);
+MALLOC_DECLARE(M_SEGMENT); /* XXX should be M_LFSSEGMENT ?? */
+
struct inode;
struct mount;
struct nameidata;
diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c
index 141e811..1f17133 100644
--- a/sys/ufs/lfs/lfs_vfsops.c
+++ b/sys/ufs/lfs/lfs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)lfs_vfsops.c 8.20 (Berkeley) 6/10/95
- * $Id: lfs_vfsops.c,v 1.22 1997/09/07 16:21:05 bde Exp $
+ * $Id: lfs_vfsops.c,v 1.23 1997/10/10 18:17:21 phk Exp $
*/
#include "opt_quota.h"
@@ -42,11 +42,11 @@
#include <sys/proc.h>
#include <sys/kernel.h>
#include <sys/vnode.h>
+#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/buf.h>
#include <sys/fcntl.h>
#include <sys/disklabel.h>
-#include <sys/malloc.h>
#include <miscfs/specfs/specdev.h>
@@ -58,6 +58,9 @@
#include <ufs/lfs/lfs.h>
#include <ufs/lfs/lfs_extern.h>
+MALLOC_DEFINE(M_LFSNODE, "LFS node", "LFS vnode private part");
+MALLOC_DEFINE(M_SEGMENT, "LFS segment", "Segment for LFS");
+
static int lfs_fhtovp __P((struct mount *, struct fid *, struct sockaddr *,
struct vnode **, int *, struct ucred **));
static int lfs_mount __P((struct mount *, char *, caddr_t,
OpenPOWER on IntegriCloud