Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348154
b: refs/heads/master
c: 12a6714
h: refs/heads/master
v: v3
  • Loading branch information
Jaegeuk Kim committed Dec 28, 2012
1 parent 9fe115a commit 3769a71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71e9fec548a95b2a4cf378646addd5d3098684a2
refs/heads/master: 12a67146e35ba1d04ac4a5430eaaa8790158d60e
7 changes: 3 additions & 4 deletions trunk/fs/f2fs/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,10 @@ static int __get_segment_type(struct page *page, enum page_type p_type)
return __get_segment_type_2(page, p_type);
case 4:
return __get_segment_type_4(page, p_type);
case 6:
return __get_segment_type_6(page, p_type);
default:
BUG();
}
/* NR_CURSEG_TYPE(6) logs by default */
BUG_ON(sbi->active_logs != NR_CURSEG_TYPE);
return __get_segment_type_6(page, p_type);
}

static void do_write_page(struct f2fs_sb_info *sbi, struct page *page,
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int parse_options(struct f2fs_sb_info *sbi, char *options)
case Opt_active_logs:
if (args->from && match_int(args, &arg))
return -EINVAL;
if (arg != 2 && arg != 4 && arg != 6)
if (arg != 2 && arg != 4 && arg != NR_CURSEG_TYPE)
return -EINVAL;
sbi->active_logs = arg;
break;
Expand Down

0 comments on commit 3769a71

Please sign in to comment.