From: Josef Bacik Date: Thu, 1 Oct 2009 21:10:23 +0000 (-0400) Subject: Btrfs: fix data space leak fix X-Git-Tag: v2.6.32-rc3~13^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf190874407f23d2891b53ffdf7d3c6be8d47ff;p=pandora-kernel.git Btrfs: fix data space leak fix There is a problem where page_mkwrite can be called on a dirtied page that already has a delalloc range associated with it. The fix is to clear any delalloc bits for the range we are dirtying so the space accounting gets handled properly. This is the same thing we do in the normal write case, so we are consistent across the board. With this patch we no longer leak reserved space. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed