Files
linux/mm
OGAWA Hirofumi af55a3da50 vfs: Fix vmtruncate() regression
commit cedabed49b upstream.

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 <npiggin@suse.de>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-22 15:18:41 -08:00
..
2009-04-01 08:59:13 -07:00
2009-06-16 19:47:28 -07:00
2010-01-06 15:05:22 -08:00
2010-01-06 15:05:22 -08:00
2009-12-18 14:05:51 -08:00
2009-10-29 07:39:29 -07:00
2009-09-22 07:17:35 -07:00
2010-01-06 15:05:22 -08:00
2010-01-18 10:19:11 -08:00
2010-01-18 10:19:11 -08:00
2009-10-01 16:11:12 -07:00
2009-06-23 12:50:05 -07:00
2010-01-22 15:18:41 -08:00
2010-01-18 10:19:11 -08:00
2009-09-22 07:17:29 -07:00