summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2010-01-13 21:14:09 +0900
committerLinus Torvalds <torvalds@linux-foundation.org>2010-01-13 16:09:33 -0800
commitcedabed49b39b4319bccc059a63344b6232b619c (patch)
treecaa84b17d5cfe3a0f71a537cf55498f2019586db /firmware
parente80c14e1ae3cb637d1959a6c9a199ba2e7af5910 (diff)
downloadblackbird-op-linux-cedabed49b39b4319bccc059a63344b6232b619c.tar.gz
blackbird-op-linux-cedabed49b39b4319bccc059a63344b6232b619c.zip
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 <npiggin@suse.de> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud