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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user