ANDROID: vendor_hooks: add hook to balance_dirty_pages()
Add vendor hook in order to track which process cause dirty page write back pressure. Bug: 188096764 Change-Id: I890299c97d7a8cf791f20d16d8d53b4615679b9e Signed-off-by: Yang Yang <yang.yang@vivo.com>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
dc5241048f
commit
1b6f2f6e29
@@ -42,6 +42,9 @@
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
#undef CREATE_TRACE_POINT
|
||||
#include <trace/hooks/mm.h>
|
||||
|
||||
/*
|
||||
* Sleep at most 200ms at a time in balance_dirty_pages().
|
||||
*/
|
||||
@@ -1625,6 +1628,9 @@ static void balance_dirty_pages(struct bdi_writeback *wb,
|
||||
}
|
||||
}
|
||||
|
||||
trace_android_vh_mm_dirty_limits(gdtc, strictlimit, dirty, bg_thresh,
|
||||
nr_reclaimable, pages_dirtied);
|
||||
|
||||
/*
|
||||
* Throttle it only when the background writeback cannot
|
||||
* catch-up. This avoids (excessively) small writeouts
|
||||
|
Reference in New Issue
Block a user