mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
f2fs: Hardcode 5ms for gc_urgent_sleep_time
Mainline's default is set to 500ms and Android switches this to 50ms during boot. However, this is still not enough to sufficiently perform GC. Hardcode this to 5ms from the kernel. Change-Id: Ib6dda6a96aa2331d0ef725f59687e4016ecc7238 Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
c299f0aa3c
commit
31ee631576
@ -10,7 +10,7 @@
|
||||
* whether IO subsystem is idle
|
||||
* or not
|
||||
*/
|
||||
#define DEF_GC_THREAD_URGENT_SLEEP_TIME 50 /* 500 ms */
|
||||
#define DEF_GC_THREAD_URGENT_SLEEP_TIME 5 /* 5 ms */
|
||||
#define DEF_GC_THREAD_MIN_SLEEP_TIME 30000 /* milliseconds */
|
||||
#define DEF_GC_THREAD_MAX_SLEEP_TIME 60000
|
||||
#define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */
|
||||
|
@ -770,8 +770,6 @@ static struct f2fs_attr f2fs_attr_##_name = { \
|
||||
.offset = offsetof(struct _struct_name, _elname), \
|
||||
}
|
||||
|
||||
F2FS_RO_ATTR(GC_THREAD, f2fs_gc_kthread, gc_urgent_sleep_time,
|
||||
urgent_sleep_time);
|
||||
F2FS_RW_ATTR(GC_THREAD, f2fs_gc_kthread, gc_min_sleep_time, min_sleep_time);
|
||||
F2FS_RW_ATTR(GC_THREAD, f2fs_gc_kthread, gc_max_sleep_time, max_sleep_time);
|
||||
F2FS_RW_ATTR(GC_THREAD, f2fs_gc_kthread, gc_no_gc_sleep_time, no_gc_sleep_time);
|
||||
@ -896,7 +894,6 @@ F2FS_RW_ATTR(F2FS_SBI, f2fs_sb_info, revoked_atomic_block, revoked_atomic_block)
|
||||
|
||||
#define ATTR_LIST(name) (&f2fs_attr_##name.attr)
|
||||
static struct attribute *f2fs_attrs[] = {
|
||||
ATTR_LIST(gc_urgent_sleep_time),
|
||||
ATTR_LIST(gc_min_sleep_time),
|
||||
ATTR_LIST(gc_max_sleep_time),
|
||||
ATTR_LIST(gc_no_gc_sleep_time),
|
||||
|
Loading…
x
Reference in New Issue
Block a user