Skip to content
Snippets Groups Projects
Commit 8ba97a15 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

Btrfs: use btrfs_read_lock_root_node in get_old_root


get_old_root could race with root node updates because we weren't locking
the node early enough. Use btrfs_read_lock_root_node to grab the root locked
in the very beginning and release the lock as soon as possible (just like
btrfs_search_slot does).

Signed-off-by: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
parent f617e2fd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment