From: Aneesh Kumar K.V Date: Sun, 19 Oct 2008 03:28:00 +0000 (-0700) Subject: ext3: truncate block allocated on a failed ext3_write_begin X-Git-Tag: v2.6.28-rc1~158 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ec8b75e3a2a94860ee99b5456fe1a963c8680e5;p=pandora-kernel.git ext3: truncate block allocated on a failed ext3_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 page 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" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed