diff options
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r-- | fs/f2fs/segment.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 2495bec1c621..7f327c0ba4e3 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h | |||
@@ -657,10 +657,7 @@ static inline void set_to_next_sit(struct sit_info *sit_i, unsigned int start) | |||
657 | { | 657 | { |
658 | unsigned int block_off = SIT_BLOCK_OFFSET(start); | 658 | unsigned int block_off = SIT_BLOCK_OFFSET(start); |
659 | 659 | ||
660 | if (f2fs_test_bit(block_off, sit_i->sit_bitmap)) | 660 | f2fs_change_bit(block_off, sit_i->sit_bitmap); |
661 | f2fs_clear_bit(block_off, sit_i->sit_bitmap); | ||
662 | else | ||
663 | f2fs_set_bit(block_off, sit_i->sit_bitmap); | ||
664 | } | 661 | } |
665 | 662 | ||
666 | static inline unsigned long long get_mtime(struct f2fs_sb_info *sbi) | 663 | static inline unsigned long long get_mtime(struct f2fs_sb_info *sbi) |
@@ -714,6 +711,9 @@ static inline unsigned int max_hw_blocks(struct f2fs_sb_info *sbi) | |||
714 | */ | 711 | */ |
715 | static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type) | 712 | static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type) |
716 | { | 713 | { |
714 | if (sbi->sb->s_bdi->dirty_exceeded) | ||
715 | return 0; | ||
716 | |||
717 | if (type == DATA) | 717 | if (type == DATA) |
718 | return sbi->blocks_per_seg; | 718 | return sbi->blocks_per_seg; |
719 | else if (type == NODE) | 719 | else if (type == NODE) |