From: Aneesh Kumar K.V Date: Sat, 13 Sep 2008 17:10:25 +0000 (-0400) Subject: ext4: truncate block allocated on a failed ext4_write_begin X-Git-Tag: v2.6.28-rc1~709^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae4d537211ff250a8c23c4f1227c4276cd2508ab;p=pandora-kernel.git ext4: truncate block allocated on a failed ext4_write_begin For blocksize < pagesize we need to remove blocks that got allocated in block_write_begin() if we fail with ENOSPC for later blocks. block_write_begin() internally does this if it allocated pages locally. This makes sure we don't have blocks outside inode.i_size during ENOSPC. Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed