OSDN Git Service

f2fs: fix to caclulate required free section correctly
authorChao Yu <yuchao0@huawei.com>
Wed, 10 Jan 2018 10:18:51 +0000 (18:18 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Feb 2018 02:05:52 +0000 (18:05 -0800)
commitb203c58dfd5538d1a7f99737db6d3653b7601c82
treedfc8e944c957e965d5554d7f58154281614ef779
parentd49132d45cb07dc77904bf9b6501df2dd77b251b
f2fs: fix to caclulate required free section correctly

When calculating required free section during file defragmenting, we
should skip holes in file, otherwise we will probably fail to defrag
sparse file with large size.

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