bb7c2e82b1
When small blocks are recombined to create a single block at a shallower level, it is sufficient to remove those blocks from the free list. There is no need to mark those small blocks as allocated in the bitmap. This, in turn, removes the need to mark small blocks back as unallocated when splitting up a big blocks as they'll already be so marked. Only the first small block needs to be marked allocated and the remaining blocks only need to be added to the free list. This makes the code smaller and more efficient, especially since those removed bit manipulations were located within loops. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
assert.c | ||
base64.c | ||
crc7_sw.c | ||
crc8_sw.c | ||
crc16_sw.c | ||
crc32_sw.c | ||
dec.c | ||
fdtable.c | ||
hex.c | ||
json.c | ||
mempool.c | ||
mutex.c | ||
printk.c | ||
rb.c | ||
ring_buffer.c | ||
sem.c | ||
thread_entry.c | ||
timeutil.c | ||
work_q.c |