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

Btrfs: adjust the write_lock_level as we unlock



btrfs_search_slot sometimes needs write locks on high levels of
the tree.  It remembers the highest level that needs a write lock
and will use that for all future searches through the tree in a given
call.

But, very often we'll just cow the top level or the level below and we
won't really need write locks on the root again after that.  This patch
changes things to adjust the write lock requirement as it unlocks
levels.

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