diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-06-05 16:41:24 +0200 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-06-14 18:44:22 +0200 |
commit | a95236d99fa56766f11056903439f55fe5038bcf (patch) | |
tree | 90a9ea2656772900ac411cf43333ec25ed712363 /fs/btrfs/zlib.c | |
parent | Btrfs: use btrfs_read_lock_root_node in get_old_root (diff) | |
download | linux-a95236d99fa56766f11056903439f55fe5038bcf.tar.xz linux-a95236d99fa56766f11056903439f55fe5038bcf.zip |
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: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/zlib.c')
0 files changed, 0 insertions, 0 deletions