From: Zhao Lei Date: Sat, 14 Feb 2015 05:23:45 +0000 (+0800) Subject: btrfs: fix condition of commit transaction X-Git-Tag: omap-for-v4.1/fixes-rc1~43^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94b947b2f3f84f3bba25d34c4e2a229fc2276830;p=pandora-kernel.git btrfs: fix condition of commit transaction Old code bypass commit transaction when we don't have enough pinned space, but another case is there exist freed bgs in current transction, it have possibility to make alloc_chunk success. This patch modify the condition to: if (have_free_bg || have_pinned_space) commit_transaction() Confirmed above action by printk before and after patch. Signed-off-by: Zhao Lei Signed-off-by: Chris Mason --- Reading git-diff-tree failed