Skip to content
Commit b7a9f29f authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent b51912c9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment