From: Jan Schmidt Date: Tue, 5 Jun 2012 14:41:24 +0000 (+0200) Subject: Btrfs: fix return value for __tree_mod_log_oldest_root X-Git-Tag: v3.5-rc3~18^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95236d99fa56766f11056903439f55fe5038bcf;p=pandora-kernel.git 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 --- Reading git-diff-tree failed