]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix return value for __tree_mod_log_oldest_root
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 5 Jun 2012 14:41:24 +0000 (16:41 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 14 Jun 2012 16:44:22 +0000 (18:44 +0200)
commit7715f6bacc40748c668e15de4d52096535587a6e
tree90a9ea2656772900ac411cf43333ec25ed712363
parent9ffb564a2a4d17c11a832f66b9bbc81b6e4ebdb7
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>
fs/btrfs/ctree.c