]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: handle EOF correctly in ext4_bio_write_page()
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 14 Dec 2011 03:29:12 +0000 (22:29 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:15 +0000 (13:00 -0800)
commitc9c167e20a170da52c7e38fc4be1a52b2d1e9b49
treee3d5751aac7c6bb828440a8aca74f825d791a236
parentdfa4791417eae69f2c2226143dc2ed0cf1ba370f
ext4: handle EOF correctly in ext4_bio_write_page()

commit 5a0dc7365c240795bf190766eba7a27600be3b3e upstream.

We need to zero out part of a page which beyond EOF before setting uptodate,
otherwise, mapread or write will see non-zero data beyond EOF.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/page-io.c