diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-06-22 11:38:48 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-07-08 06:51:48 +0200 |
commit | 901d745f8e6a61a835b12314d8b8a41df7012596 (patch) | |
tree | 8a01d103f3614f4d3f31e152a90b8a793d1a708a /fs/f2fs/file.c | |
parent | f2fs: lost matching-pair of trace in f2fs_truncate_inode_blocks (diff) | |
download | linux-901d745f8e6a61a835b12314d8b8a41df7012596.tar.xz linux-901d745f8e6a61a835b12314d8b8a41df7012596.zip |
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>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6ef2656c6171..1af37f3b3309 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1658,7 +1658,7 @@ next_alloc: map.m_seg_type = CURSEG_COLD_DATA_PINNED; f2fs_lock_op(sbi); - f2fs_allocate_new_segments(sbi, CURSEG_COLD_DATA); + f2fs_allocate_new_segment(sbi, CURSEG_COLD_DATA); f2fs_unlock_op(sbi); err = f2fs_map_blocks(inode, &map, 1, F2FS_GET_BLOCK_PRE_DIO); |