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

Btrfs: reduce lock contention during extent insertion



We're spending huge amounts of time on lock contention during
end_io processing because we unconditionally assume we are overwriting
an existing extent in the file for each IO.

This checks to see if we are outside i_size, and if so, it uses a
less expensive readonly search of the btree to look for existing
extents.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent fede766f
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