commit | 64649a58919e66ec21792dbb6c48cb3da22cbd7f | [log] [tgz] |
---|---|---|
author | Nick Piggin <npiggin@suse.de> | Tue Oct 16 01:24:56 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Tue Oct 16 09:42:54 2007 -0700 |
tree | 054605b7da7bad43c299ef66de9d33fda87cd38d | |
parent | 5fe172370687e03cc6ba8dca990b75db18ff9bb3 [diff] |
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>