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 90c07787b9f9914d0edd7f18d227988d2721fdb9..86ef225fabde708dd6eb4fab8a9355bea75e1625 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 {