aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r--fs/f2fs/segment.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 8388d2abacb5..8dee063c833f 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -2169,8 +2169,11 @@ static void update_sit_entry(struct f2fs_sb_info *sbi, block_t blkaddr, int del)
2169 * before, we must track that to know how much space we 2169 * before, we must track that to know how much space we
2170 * really have. 2170 * really have.
2171 */ 2171 */
2172 if (f2fs_test_bit(offset, se->ckpt_valid_map)) 2172 if (f2fs_test_bit(offset, se->ckpt_valid_map)) {
2173 spin_lock(&sbi->stat_lock);
2173 sbi->unusable_block_count++; 2174 sbi->unusable_block_count++;
2175 spin_unlock(&sbi->stat_lock);
2176 }
2174 } 2177 }
2175 2178
2176 if (f2fs_test_and_clear_bit(offset, se->discard_map)) 2179 if (f2fs_test_and_clear_bit(offset, se->discard_map))