Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358998
b: refs/heads/master
c: b7250d2
h: refs/heads/master
v: v3
  • Loading branch information
Jaegeuk Kim committed Feb 11, 2013
1 parent e74bdca commit b2c95f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 437275272f9e635673f065300e5d95226a25cb06
refs/heads/master: b7250d2d845822466356f7f22a650bf807090d7e
3 changes: 3 additions & 0 deletions trunk/fs/f2fs/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ static void select_policy(struct f2fs_sb_info *sbi, int gc_type,
static unsigned int get_max_cost(struct f2fs_sb_info *sbi,
struct victim_sel_policy *p)
{
/* SSR allocates in a segment unit */
if (p->alloc_mode == SSR)
return 1 << sbi->log_blocks_per_seg;
if (p->gc_mode == GC_GREEDY)
return (1 << sbi->log_blocks_per_seg) * p->ofs_unit;
else if (p->gc_mode == GC_CB)
Expand Down

0 comments on commit b2c95f8

Please sign in to comment.