File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2730,6 +2730,7 @@ static int get_new_segment(struct f2fs_sb_info *sbi,
2730
2730
MAIN_SECS (sbi ));
2731
2731
if (secno >= MAIN_SECS (sbi )) {
2732
2732
ret = - ENOSPC ;
2733
+ f2fs_bug_on (sbi , 1 );
2733
2734
goto out_unlock ;
2734
2735
}
2735
2736
}
@@ -2740,6 +2741,7 @@ static int get_new_segment(struct f2fs_sb_info *sbi,
2740
2741
MAIN_SECS (sbi ));
2741
2742
if (secno >= MAIN_SECS (sbi )) {
2742
2743
ret = - ENOSPC ;
2744
+ f2fs_bug_on (sbi , 1 );
2743
2745
goto out_unlock ;
2744
2746
}
2745
2747
}
@@ -2781,10 +2783,8 @@ static int get_new_segment(struct f2fs_sb_info *sbi,
2781
2783
out_unlock :
2782
2784
spin_unlock (& free_i -> segmap_lock );
2783
2785
2784
- if (ret == - ENOSPC ) {
2786
+ if (ret == - ENOSPC )
2785
2787
f2fs_stop_checkpoint (sbi , false, STOP_CP_REASON_NO_SEGMENT );
2786
- f2fs_bug_on (sbi , 1 );
2787
- }
2788
2788
return ret ;
2789
2789
}
2790
2790
You can’t perform that action at this time.
0 commit comments