From: Josef Bacik Date: Tue, 13 Oct 2009 20:46:49 +0000 (-0400) Subject: Btrfs: fix possible ENOSPC problems with truncate X-Git-Tag: v2.6.32-rc5~8^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d5e103a70f74ae98e3965a4add1ab951d0651d1;p=pandora-kernel.git Btrfs: fix possible ENOSPC problems with truncate There's a problem where we don't do any space reservation for truncates, which can cause you to OOPs because you will be allowed to go off in the weeds a bit since we don't account for the delalloc bytes that are created as a result of the truncate. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed