From: Jan Kara Date: Thu, 17 Dec 2009 23:27:06 +0000 (-0800) Subject: reiserfs: truncate blocks not used by a write X-Git-Tag: v2.6.33-rc1~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec8e2f7466ca370f5e09000ca40a71759afc9ac8;p=pandora-kernel.git reiserfs: truncate blocks not used by a write It can happen that write does not use all the blocks allocated in write_begin either because of some filesystem error (like ENOSPC) or because page with data to write has been removed from memory. We truncate these blocks so that we don't have dangling blocks beyond i_size. Cc: Jeff Mahoney Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed