Skip to content

Commit

Permalink
Refactored deduplicate/deorphan step to single deorphan step
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
geky committed Oct 10, 2017
1 parent 2936514 commit 539409e
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 120 deletions.
Loading

0 comments on commit 539409e

Please sign in to comment.