Add CONFIG_YAFFS_SMALL_RAM to reduce RAM footprint
authorCharles Manning <cdhmanning@gmail.com>
Thu, 9 Jul 2020 01:28:23 +0000 (13:28 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Thu, 9 Jul 2020 01:28:23 +0000 (13:28 +1200)
Reduce number of handles and search contexts.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffscfg.h

index 90c0778..86ef225 100644 (file)
 
 #include "yportenv.h"
 
+#ifdef CONFIG_YAFFS_SMALL_RAM
+#define YAFFSFS_N_HANDLES      10
+#define YAFFSFS_N_DSC          2
+#else
 #define YAFFSFS_N_HANDLES      100
-
 #define YAFFSFS_N_DSC          20
+#endif
 
 
 struct yaffsfs_DeviceConfiguration {