mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mm: Run ZRAM compaction on automatic compaction
* Subsequent to "mm: compaction: Add automatic compaction mechanism" Signed-off-by: Forenche <prahul2003@gmail.com>
This commit is contained in:
parent
1abc03ae73
commit
d5c5d7449d
@ -1922,6 +1922,8 @@ static void compact_nodes(void)
|
||||
compact_node(nid);
|
||||
}
|
||||
|
||||
void zram_compact(void);
|
||||
|
||||
static void do_compaction(struct work_struct *work)
|
||||
{
|
||||
/* Return early if the screen is on */
|
||||
@ -1933,6 +1935,9 @@ static void do_compaction(struct work_struct *work)
|
||||
/* Do full compaction */
|
||||
compact_nodes();
|
||||
|
||||
/* Do ZRAM compaction */
|
||||
zram_compact();
|
||||
|
||||
/* Force compaction timeout */
|
||||
compaction_forced_timeout = jiffies + msecs_to_jiffies(compaction_timeout_ms);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user