From: OGAWA Hirofumi Date: Wed, 13 Jan 2010 12:14:09 +0000 (+0900) Subject: vfs: Fix vmtruncate() regression X-Git-Tag: v2.6.33-rc5~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedabed49b39b4319bccc059a63344b6232b619c;p=pandora-kernel.git vfs: Fix vmtruncate() regression If __block_prepare_write() was failed in block_write_begin(), the allocated blocks can be outside of ->i_size. But new truncate_pagecache() in vmtuncate() does nothing if new < old. It means the above usage is not working anymore. So, this patch fixes it by removing "new < old" check. It would need more cleanup/change. But, now -rc and truncate working is in progress, so, this tried to fix it minimum change. Acked-by: Nick Piggin Signed-off-by: OGAWA Hirofumi Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed