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>
Thu, 26 Oct 2017 08:44:16 +0000 (10:44 +0200)
commit48ab25f486a3f730db825758b9728fffdf237574
tree37f39f117b9e1e5a3e745ebfa211ec14f948d24a
parent5b4267d195dd887c4412e34b5a7365baa741b679
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