diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-05 18:52:42 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-10 02:44:55 +0000 |
commit | 42bebbda9ed13d12d0454b676aa81f34b39e496f (patch) | |
tree | 3db700ccb750dd1d2fdc07988df7e439ca871a31 | |
parent | cd240c9cf100bec3def38ceb4a320611b1d02693 (diff) |
tmpfs: make M_TMPFSMNT static to tmpfs_vfsops.c
This malloc type is only used in this file.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/fs/tmpfs/tmpfs.h | 1 | ||||
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index beded9cd5455..811df5b2936f 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -42,7 +42,6 @@ #include <sys/tree.h> #ifdef _SYS_MALLOC_H_ -MALLOC_DECLARE(M_TMPFSMNT); MALLOC_DECLARE(M_TMPFSNAME); #endif diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index c090cd5aa658..125c5bb64120 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -80,7 +80,7 @@ __FBSDID("$FreeBSD$"); */ #define TMPFS_DEFAULT_ROOT_MODE (S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) -MALLOC_DEFINE(M_TMPFSMNT, "tmpfs mount", "tmpfs mount structures"); +static MALLOC_DEFINE(M_TMPFSMNT, "tmpfs mount", "tmpfs mount structures"); MALLOC_DEFINE(M_TMPFSNAME, "tmpfs name", "tmpfs file names"); static int tmpfs_mount(struct mount *); |