Page MenuHomeFreeBSD

D13583.id55397.diff
No OneTemporary

D13583.id55397.diff

Index: sys/conf/options
===================================================================
--- sys/conf/options
+++ sys/conf/options
@@ -640,6 +640,9 @@
NFS_MAXDIRATTRTIMO opt_nfs.h
NFS_DEBUG opt_nfs.h
+# TMPFS options
+TMPFS_PAGES_MINRESERVED opt_tmpfs.h
+
# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
OVERRIDE_CARD opt_bktr.h
OVERRIDE_TUNER opt_bktr.h
Index: sys/fs/tmpfs/tmpfs.h
===================================================================
--- sys/fs/tmpfs/tmpfs.h
+++ sys/fs/tmpfs/tmpfs.h
@@ -487,7 +487,9 @@
* Amount of memory pages to reserve for the system (e.g., to not use by
* tmpfs).
*/
+#if !defined(TMPFS_PAGES_MINRESERVED)
#define TMPFS_PAGES_MINRESERVED (4 * 1024 * 1024 / PAGE_SIZE)
+#endif
size_t tmpfs_mem_avail(void);
Index: sys/fs/tmpfs/tmpfs_vfsops.c
===================================================================
--- sys/fs/tmpfs/tmpfs_vfsops.c
+++ sys/fs/tmpfs/tmpfs_vfsops.c
@@ -42,6 +42,9 @@
* memory-specific data structures and algorithms to automatically
* allocate and release resources.
*/
+
+#include "opt_tmpfs.h"
+
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
Index: sys/modules/tmpfs/Makefile
===================================================================
--- sys/modules/tmpfs/Makefile
+++ sys/modules/tmpfs/Makefile
@@ -4,6 +4,6 @@
KMOD= tmpfs
SRCS= vnode_if.h \
- tmpfs_vnops.c tmpfs_fifoops.c tmpfs_vfsops.c tmpfs_subr.c
+ tmpfs_vnops.c tmpfs_fifoops.c tmpfs_vfsops.c tmpfs_subr.c opt_tmpfs.h
.include <bsd.kmod.mk>

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 28, 12:17 PM (9 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32276674
Default Alt Text
D13583.id55397.diff (1 KB)

Event Timeline