projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dae2d3
)
f2fs: allow ssr block allocation during checkpoint=disable period
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 20 May 2019 22:54:49 +0000
(15:54 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 23 May 2019 14:03:18 +0000
(07:03 -0700)
This patch allows to use ssr during checkpoint is disabled.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/gc.c
b/fs/f2fs/gc.c
index 963fb4571fd984a75e0f32fba612c416a4330db8..1e029da26053ae32613dfb1caacd7a1126fe5a4c 100644
(file)
--- a/
fs/f2fs/gc.c
+++ b/
fs/f2fs/gc.c
@@
-387,7
+387,8
@@
static int get_victim_by_default(struct f2fs_sb_info *sbi,
goto next;
/* Don't touch checkpointed data */
if (unlikely(is_sbi_flag_set(sbi, SBI_CP_DISABLED) &&
- get_ckpt_valid_blocks(sbi, segno)))
+ get_ckpt_valid_blocks(sbi, segno) &&
+ p.alloc_mode != SSR))
goto next;
if (gc_type == BG_GC && test_bit(secno, dirty_i->victim_secmap))
goto next;