Lines Matching refs:block_cycles
1787 // to our block_cycles modulus, see lfs_dir_compact for why our modulus
1789 if (lfs->cfg->block_cycles > 0) {
1790 dir->rev = lfs_alignup(dir->rev, ((lfs->cfg->block_cycles+1)|1));
1889 // If our revision count == n * block_cycles, we should force a relocation,
1891 // actually use (block_cycles+1)|1, this is to avoid two corner cases:
1892 // 1. block_cycles = 1, which would prevent relocations from terminating
1893 // 2. block_cycles = 2n, which, due to aliasing, would only ever relocate
1895 return (lfs->cfg->block_cycles > 0
1896 && ((dir->rev + 1) % ((lfs->cfg->block_cycles+1)|1) == 0));
4148 // block_cycles = 0 is no longer supported.
4150 // block_cycles is the number of erase cycles before littlefs evicts
4152 // range of 100-1000, or set block_cycles to -1 to disable block-level
4154 LFS_ASSERT(lfs->cfg->block_cycles != 0);
5762 ".block_cycles=%"PRIu32", .cache_size=%"PRIu32", "
5771 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
5792 ".block_cycles=%"PRIu32", .cache_size=%"PRIu32", "
5801 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
6311 ".block_cycles=%"PRIu32", .cache_size=%"PRIu32", "
6320 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,