diff options
| author | Park Ju Hyung <qkrwngud825@gmail.com> | 2017-09-26 16:37:08 +0900 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-05-23 19:11:36 +0200 |
| commit | bd1785f9c33da7edc0e50606e13ccf18be860eb6 (patch) | |
| tree | 6b7ad1c9855d31bbcc9a89e71d15c029ed98608e /scripts/extract-vmlinux | |
| parent | 57a20b86b1279bbeb7ad5b19af18ac0fcd2f839c (diff) | |
f2fs: rapidly GC all invalid blocks when screen goes off & plugged in
Rapidly GC'ing all invalid blocks only takes a few minute,
even under extreme scenario.
Wait until the screen goes off and detect if the power source is plugged in.
If it is, GC thread runs repeatedly with 1ms interval.
Since the device can go to sleep even with power source plugged in,
catch an additional wakelock.
When no more GC victim block is found, GC thread sleeps for
gc_no_gc_sleep_time(5m).
With the previous ioprio patch, the impact to system responsiveness
(e.g. waking up the screen) is minimal, if not zero.
This patch is intended to optimize background GC behavior specific to Android.
So, disable background_gc by default as well.
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Diffstat (limited to 'scripts/extract-vmlinux')
0 files changed, 0 insertions, 0 deletions
