From: Charles Manning Date: Thu, 9 Jul 2020 01:28:23 +0000 (+1200) Subject: Add CONFIG_YAFFS_SMALL_RAM to reduce RAM footprint X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=edbbbac4c481931fa84174b861b6cbbca93fb13d;hp=da59bf8d6a7fe444626da887e4096f411c66d4ca Add CONFIG_YAFFS_SMALL_RAM to reduce RAM footprint Reduce number of handles and search contexts. Signed-off-by: Charles Manning --- diff --git a/direct/yaffscfg.h b/direct/yaffscfg.h index 90c0778..86ef225 100644 --- a/direct/yaffscfg.h +++ b/direct/yaffscfg.h @@ -24,9 +24,13 @@ #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 {