f2fs: skip searching non-exist range in truncate_hole
authorWeichao Guo <guoweichao@huawei.com>
Sat, 14 Oct 2017 00:13:32 +0000 (08:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:22:12 +0000 (17:22 -0800)
commit76e8f60644aa7ea4f08d53f90f27ec4bbc5efdb0
treee4d7ac86ea4f462874f000854b74f468a6b45632
parent2f18884d3c65b1fe4c12c783754e56d67dc750ea
f2fs: skip searching non-exist range in truncate_hole

Let's skip entire non-exist area to speed up truncate_hole by
using get_next_page_offset.

Signed-off-by: Weichao Guo <guoweichao@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c