Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b405275 authored by Gu Zheng's avatar Gu Zheng Committed by Jaegeuk Kim
Browse files

f2fs: fix a compound statement label error



An error "label at end of compound statement" will occur if CONFIG_F2FS_STAT_FS
disabled.
fs/f2fs/segment.c:556:1: error: label at end of compound statement
So clean up the 'out' label to fix it.

Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarGu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 92c4342f
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -540,12 +540,9 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi,
{
{
	struct curseg_info *curseg = CURSEG_I(sbi, type);
	struct curseg_info *curseg = CURSEG_I(sbi, type);


	if (force) {
	if (force)
		new_curseg(sbi, type, true);
		new_curseg(sbi, type, true);
		goto out;
	else if (type == CURSEG_WARM_NODE)
	}

	if (type == CURSEG_WARM_NODE)
		new_curseg(sbi, type, false);
		new_curseg(sbi, type, false);
	else if (curseg->alloc_type == LFS && is_next_segment_free(sbi, type))
	else if (curseg->alloc_type == LFS && is_next_segment_free(sbi, type))
		new_curseg(sbi, type, false);
		new_curseg(sbi, type, false);
@@ -553,7 +550,6 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi,
		change_curseg(sbi, type, true);
		change_curseg(sbi, type, true);
	else
	else
		new_curseg(sbi, type, false);
		new_curseg(sbi, type, false);
out:
#ifdef CONFIG_F2FS_STAT_FS
#ifdef CONFIG_F2FS_STAT_FS
	sbi->segment_count[curseg->alloc_type]++;
	sbi->segment_count[curseg->alloc_type]++;
#endif
#endif