From: Josef Bacik Date: Wed, 25 May 2011 17:10:16 +0000 (-0400) Subject: Btrfs: don't commit the transaction if we dont have enough pinned bytes X-Git-Tag: v3.0-rc3~9^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2bb8f5cfb3bce595b2de251ed7638047fc4e530;p=pandora-kernel.git Btrfs: don't commit the transaction if we dont have enough pinned bytes I noticed when running an enospc test that we would get stuck committing the transaction in check_data_space even though we truly didn't have enough space. So check to see if bytes_pinned is bigger than num_bytes, if it's not don't commit the transaction. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed