CONFIG_FS_LITTLEFS_FC_MEM_POOL

Enable flexible file cache sizes for littlefs

Type: bool

Help

littlefs requires a per-file buffer to cache data. For applications that use the default configuration parameters a memory slab is reserved to support up to FS_LITTLE_FS_NUM_FILES blocks of FS_LITTLEFS_CACHE_SIZE bytes.

When applications customize littlefs configurations and support different cache sizes for different partitions this preallocation is inadequate.

Select this feature to enable a memory pool allocator for littlefs file caches.

Direct dependencies

FILE_SYSTEM_LITTLEFS && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At <Zephyr>/subsys/fs/Kconfig.littlefs:71

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:25<Zephyr>/subsys/fs/Kconfig:61

Menu path: (Top) → Sub Systems and OS Services → File Systems → File system support → LittleFS support → LittleFS Settings

menuconfig FS_LITTLEFS_FC_MEM_POOL
    bool "Enable flexible file cache sizes for littlefs" if FILE_SYSTEM_LITTLEFS
    depends on FILE_SYSTEM_LITTLEFS && FILE_SYSTEM
    help
      littlefs requires a per-file buffer to cache data.  For
      applications that use the default configuration parameters a
      memory slab is reserved to support up to
      FS_LITTLE_FS_NUM_FILES blocks of FS_LITTLEFS_CACHE_SIZE bytes.

      When applications customize littlefs configurations and
      support different cache sizes for different partitions this
      preallocation is inadequate.

      Select this feature to enable a memory pool allocator for
      littlefs file caches.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)