]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[PATCH] reiserfs_write_full_page() should not get_block past eof
authorChris Mason <mason@suse.com>
Sat, 5 Aug 2006 19:15:10 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 6 Aug 2006 15:57:49 +0000 (08:57 -0700)
commitb4c76fa721c7c8a43655a74e508870d21d2e26d3
treeb8c69298a29e3476413da922f7fd6c13cb750f83
parentb5f3953c10b27fcd1c83e199e573b41d8327e22e
[PATCH] reiserfs_write_full_page() should not get_block past eof

reiserfs_write_full_page does zero bytes in the file past eof, but it may
call get_block on those buffers as well.  On machines where the page size
is larger than the blocksize, this can result in mmaped files incorrectly
growing up to a block boundary during writepage.

The fix is to avoid calling get_block for any blocks that are entirely past
eof

Signed-off-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/inode.c