Skip to content
Commit a95236d9 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

Btrfs: fix return value for __tree_mod_log_oldest_root



In __tree_mod_log_oldest_root() we must return the found operation even if
it's not a ROOT_REPLACE operation. Otherwise, the caller assumes that there
are no operations to be rewinded and returns immediately.

The code in the caller is modified to improve readability.

Signed-off-by: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
parent 8ba97a15
Loading
Loading
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