f2fs: avoid to truncate non-updated page partially
authorChao Yu <chao2.yu@samsung.com>
Thu, 12 Jun 2014 05:31:50 +0000 (13:31 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Jul 2014 21:04:24 +0000 (14:04 -0700)
commitca0a81b397b5f153ac2a9880c5e85b08b0447e4e
treeff170cf8dce25ce8655ecd8490af530cfb409df0
parent5576cd6ca555bd79e76a2d798aec44b28851d369
f2fs: avoid to truncate non-updated page partially

After we call find_data_page in truncate_partial_data_page, we could not
guarantee this page is updated or not as error may occurred in lower layer.

We'd better check status of the page to avoid this no updated page be
writebacked to device.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c