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)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 14 Dec 2011 03:29:12 +0000 (22:29 -0500)
commit5a0dc7365c240795bf190766eba7a27600be3b3e
tree614d5275640f4df89604f64e2cd47a438644226e
parent5b5ffa49d4bbb8ca4c41c094261660264f16bd20
ext4: handle EOF correctly in ext4_bio_write_page()

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>
Cc: stable@kernel.org
fs/ext4/page-io.c