mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-24 18:16:04 +00:00
Btrfs: sort references by byte number during btrfs_inc_ref
When a block goes through cow, we update the reference counts of everything that block points to. The internal pointers of the block can be in just about any order, and it is likely to have clusters of things that are close together and clusters of things that are not. To help reduce the seeks that come with updating all of these reference counts, sort them by byte number before actual updates are done. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
b51912c91f
commit
b7a9f29fcf
1 changed files with 79 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue