aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-09-02 19:05:00 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2014-09-09 16:15:03 -0400
commit05796763b8d19b48bb4149bfb1aa1a91dd9faee6 (patch)
treeb6c83dc562e3a9d6a10f6cb35241cddb542d9ebc /fs/f2fs/segment.c
parent9850cf4a8908886370b1f15aacf83d291f098c72 (diff)
f2fs: add BUG cases to initiate fsck.f2fs
This patch replaces BUG cases with f2fs_bug_on to remain fsck.f2fs information. And it implements some void functions to initiate fsck.f2fs too. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r--fs/f2fs/segment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index abfbbca63271..46586d3d3904 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -526,10 +526,10 @@ static void update_sit_entry(struct f2fs_sb_info *sbi, block_t blkaddr, int del)
526 /* Update valid block bitmap */ 526 /* Update valid block bitmap */
527 if (del > 0) { 527 if (del > 0) {
528 if (f2fs_set_bit(offset, se->cur_valid_map)) 528 if (f2fs_set_bit(offset, se->cur_valid_map))
529 BUG(); 529 f2fs_bug_on(sbi, 1);
530 } else { 530 } else {
531 if (!f2fs_clear_bit(offset, se->cur_valid_map)) 531 if (!f2fs_clear_bit(offset, se->cur_valid_map))
532 BUG(); 532 f2fs_bug_on(sbi, 1);
533 } 533 }
534 if (!f2fs_test_bit(offset, se->ckpt_valid_map)) 534 if (!f2fs_test_bit(offset, se->ckpt_valid_map))
535 se->ckpt_valid_blocks += del; 535 se->ckpt_valid_blocks += del;