diff options
author | Nick Piggin <npiggin@suse.de> | 2007-10-16 10:24:56 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 18:42:54 +0200 |
commit | 64649a58919e66ec21792dbb6c48cb3da22cbd7f (patch) | |
tree | 054605b7da7bad43c299ef66de9d33fda87cd38d /fs/mpage.c | |
parent | mm: debug write deadlocks (diff) | |
download | linux-64649a58919e66ec21792dbb6c48cb3da22cbd7f.tar.xz linux-64649a58919e66ec21792dbb6c48cb3da22cbd7f.zip |
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>
Diffstat (limited to 'fs/mpage.c')
0 files changed, 0 insertions, 0 deletions