Skip to content
Snippets Groups Projects
Commit a321abd5 authored by Stefan Brüns's avatar Stefan Brüns Committed by Tom Rini
Browse files

ext4: Scan all directory blocks for space when inserting a new entry


Previously, only the last directory block was scanned for available space.
Instead, scan all blocks back to front, and if no sufficient space is
found, eventually append a new block.
Blocks are only appended if the directory does not use extents or the new
block would require insertion of indirect blocks, as the old code does.

Signed-off-by: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: default avatarLukasz Majewski <l.majewski@samsung.com>
parent b96c3c72
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment