f2fs: add a case of no need to read a page in write begin
authorYunlei He <heyunlei@huawei.com>
Tue, 20 Dec 2016 03:11:35 +0000 (11:11 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:01 +0000 (12:46 +0900)
commit746e2403927efbd7c7f2e796314e3cfb3cfabaa4
tree94f9f6fa3a5f83c675397aca696d125253fc9fd0
parent7855eba4d6102f811b6dd142d6c749f53b591fa3
f2fs: add a case of no need to read a page in write begin

If the range we write cover the whole valid data in the last page,
we do not need to read it.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
[Jaegeuk Kim: nullify the remaining area (fix: xfstests/f2fs/001)]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c