Skip to content

Commit 539409e

Browse files
committed
Refactored deduplicate/deorphan step to single deorphan step
Deduplication and deorphan steps aren't required under indentical conditions, but they can be processed in the same iteration of the filesystem. Since lfs_alloc (requires deorphan) occurs on most write calls to the filesystem (requires deduplication), it was simpler to just compine the steps into a single lfs_deorphan step. Also traded out the places where lfs_rename/lfs_remove just defer operations to the deorphan step. This adds a bit of code, but also significantly speeds up directory operations.
1 parent 2936514 commit 539409e

File tree

2 files changed

+112
-120
lines changed

2 files changed

+112
-120
lines changed

0 commit comments

Comments
 (0)