projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07efb5
)
f2fs: assign allocation hint for warm/cold data
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 18 Apr 2017 22:03:15 +0000
(15:03 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 24 Apr 2017 20:06:53 +0000
(13:06 -0700)
This patch gives slower device region to warm/cold data area more eagerly.
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
74a10b7
..
84db41c
100644
(file)
--- a/
fs/f2fs/gc.c
+++ b/
fs/f2fs/gc.c
@@
-1033,4
+1033,9
@@
void build_gc_manager(struct f2fs_sb_info *sbi)
sbi->fggc_threshold = div64_u64((main_count - ovp_count) *
BLKS_PER_SEC(sbi), (main_count - resv_count));
+
+ /* give warm/cold data area from slower device */
+ if (sbi->s_ndevs && sbi->segs_per_sec == 1)
+ SIT_I(sbi)->last_victim[ALLOC_NEXT] =
+ GET_SEGNO(sbi, FDEV(0).end_blk) + 1;
}