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

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/fs/Kconfig.littlefs:60

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:16subsys/fs/Kconfig:142

Menu path: (Top) → File Systems → File system 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
    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.)