diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-29 05:23:15 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-29 05:23:15 +0000 |
commit | f5523801a379fd60b10766884cebdfc21bf8db35 (patch) | |
tree | 9a995329467ed0aa6c8c5a4ae50ea68413fc2cf5 /sys/fs/tmpfs/tmpfs.h | |
parent | 4f8f7b63aaea072afdf83c9faec421752039cbc6 (diff) | |
download | FreeBSD-src-f5523801a379fd60b10766884cebdfc21bf8db35.zip FreeBSD-src-f5523801a379fd60b10766884cebdfc21bf8db35.tar.gz |
MFp4:
- Remove unnecessary NULL checks after M_WAITOK allocations.
- Use VOP_ACCESS instead of hand-rolled suser_cred()
calls. [1]
- Use malloc(9) KPI to allocate memory for string. The
optimization taken from NetBSD is not valid for FreeBSD
because our malloc(9) already act that way. [2]
Requested by: rwatson [1]
Submitted by: Howard Su [2]
Approved by: re (tmpfs blanket)
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r-- | sys/fs/tmpfs/tmpfs.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index 69e5174..34e439b 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -60,8 +60,7 @@ #include <vm/swap_pager.h> MALLOC_DECLARE(M_TMPFSMNT); - -#include <fs/tmpfs/tmpfs_uma.h> +MALLOC_DECLARE(M_TMPFSNAME); /* --------------------------------------------------------------------- */ @@ -323,7 +322,6 @@ struct tmpfs_mount { * tmpfs_pool.c. */ uma_zone_t tm_dirent_pool; uma_zone_t tm_node_pool; - struct tmpfs_str_zone tm_str_pool; }; #define TMPFS_LOCK(tm) mtx_lock(&(tm)->allnode_lock) #define TMPFS_UNLOCK(tm) mtx_unlock(&(tm)->allnode_lock) |