]> git.baikalelectronics.ru Git - kernel.git/commit
mm: trim more holes
authorNick Piggin <npiggin@suse.de>
Tue, 16 Oct 2007 08:24:56 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:54 +0000 (09:42 -0700)
commit81a98c7520ae7199d765cef2f89bd418281a9c38
tree054605b7da7bad43c299ef66de9d33fda87cd38d
parent66a31c4a80ba831d31331fd1634d120155e81eee
mm: trim more holes

If prepare_write fails with AOP_TRUNCATED_PAGE, or if commit_write fails, then
we may have failed the write operation despite prepare_write having
instantiated blocks past i_size.  Fix this, and consolidate the trimming into
one place.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c