mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
f2fs: remove __allocate_new_section
Just fold this trivial wrapper into the only caller. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
committed by
Jaegeuk Kim
parent
e4de799d4d
commit
d1ad80ffb2
@@ -2926,17 +2926,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user