f2fs: split f2fs_allocate_new_segments()

to two independent functions:
- f2fs_allocate_new_segment() for specified type segment allocation
- f2fs_allocate_new_segments() for all data type segments allocation

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu
2020-06-22 17:38:48 +08:00
committed by Jaegeuk Kim
parent 9039d8355d
commit 901d745f8e
4 changed files with 28 additions and 20 deletions

View File

@@ -742,7 +742,7 @@ next:
f2fs_put_page(page, 1);
}
if (!err)
f2fs_allocate_new_segments(sbi, NO_CHECK_TYPE);
f2fs_allocate_new_segments(sbi);
return err;
}