diff options
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r-- | fs/f2fs/segment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 7fd35111cf62..85d7fa7514b2 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h | |||
@@ -336,7 +336,8 @@ static inline void __set_free(struct f2fs_sb_info *sbi, unsigned int segno) | |||
336 | clear_bit(segno, free_i->free_segmap); | 336 | clear_bit(segno, free_i->free_segmap); |
337 | free_i->free_segments++; | 337 | free_i->free_segments++; |
338 | 338 | ||
339 | next = find_next_bit(free_i->free_segmap, MAIN_SEGS(sbi), start_segno); | 339 | next = find_next_bit(free_i->free_segmap, |
340 | start_segno + sbi->segs_per_sec, start_segno); | ||
340 | if (next >= start_segno + sbi->segs_per_sec) { | 341 | if (next >= start_segno + sbi->segs_per_sec) { |
341 | clear_bit(secno, free_i->free_secmap); | 342 | clear_bit(secno, free_i->free_secmap); |
342 | free_i->free_sections++; | 343 | free_i->free_sections++; |