f2fs: split f2fs_allocate_new_segments()
authorChao Yu <yuchao0@huawei.com>
Mon, 22 Jun 2020 09:38:48 +0000 (17:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 8 Jul 2020 04:51:48 +0000 (21:51 -0700)
commit901d745f8e6a61a835b12314d8b8a41df7012596
tree8a01d103f3614f4d3f31e152a90b8a793d1a708a
parent9039d8355d6e37647b31a42122a26f1858a2470a
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>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/recovery.c
fs/f2fs/segment.c