Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1625781
| From | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] f2fs: assign allocation hint for warm/cold data |
| Date | 2017-04-19 03:50 +0200 |
| Message-ID | <txMUN-5oF-7@gated-at.bofh.it> (permalink) |
| References | <txMUN-5oF-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index d988c1aaf132..eb1846a80da3 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -1028,4 +1028,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->last_victim[ALLOC_NEXT] = + GET_SEGNO(sbi, FDEV(0).end_blk) + 1; } -- 2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 [PATCH 3/3] f2fs: assign allocation hint for warm/cold data Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 [PATCH 2/3] f2fs: fix _IOW usage Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 Re: [PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area Chao Yu <yuchao0@huawei.com> - 2017-04-22 03:20 +0200 Re: [PATCH 1/3 v2] f2fs: add ioctl to flush data from faster device to cold area Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-24 22:10 +0200
csiph-web