diff options
author | Christoph Hellwig <[email protected]> | 2023-01-19 07:36:23 +0100 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2023-02-02 13:37:16 -0800 |
commit | dede3525edbff6e6244668f81d66a48105d3e43b (patch) | |
tree | 88fda3dd27c628c1bba2a3275c43246ebae19121 | |
parent | 2df79573ef0215431dc4be6b0d4b084204a0820a (diff) |
f2fs: remove __allocate_new_section
Just fold this trivial wrapper into the only caller.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
-rw-r--r-- | fs/f2fs/segment.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 3712752d395a..55720251755e 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -2925,17 +2925,11 @@ static void __allocate_new_segment(struct f2fs_sb_info *sbi, int type, locate_dirty_segment(sbi, old_segno); } -static void __allocate_new_section(struct f2fs_sb_info *sbi, - int type, bool force) -{ - __allocate_new_segment(sbi, type, true, force); -} - void f2fs_allocate_new_section(struct f2fs_sb_info *sbi, int type, bool force) { f2fs_down_read(&SM_I(sbi)->curseg_lock); down_write(&SIT_I(sbi)->sentry_lock); - __allocate_new_section(sbi, type, force); + __allocate_new_segment(sbi, type, true, force); up_write(&SIT_I(sbi)->sentry_lock); f2fs_up_read(&SM_I(sbi)->curseg_lock); } |