projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd748d
)
f2fs: remove dead variable
author
Sheng Yong
<shengyong1@huawei.com>
Thu, 29 Sep 2016 10:37:31 +0000
(18:37 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:37 +0000
(17:34 -0700)
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/gc.c
b/fs/f2fs/gc.c
index
c9b8a67
..
93985c6
100644
(file)
--- a/
fs/f2fs/gc.c
+++ b/
fs/f2fs/gc.c
@@
-275,7
+275,7
@@
static int get_victim_by_default(struct f2fs_sb_info *sbi,
{
struct dirty_seglist_info *dirty_i = DIRTY_I(sbi);
struct victim_sel_policy p;
- unsigned int secno,
max_cost,
last_victim;
+ unsigned int secno, last_victim;
unsigned int last_segment = MAIN_SEGS(sbi);
unsigned int nsearched = 0;
@@
-285,7
+285,7
@@
static int get_victim_by_default(struct f2fs_sb_info *sbi,
select_policy(sbi, gc_type, type, &p);
p.min_segno = NULL_SEGNO;
- p.min_cost =
max_cost =
get_max_cost(sbi, &p);
+ p.min_cost = get_max_cost(sbi, &p);
if (p.max_search == 0)
goto out;