mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm,vmacache: count number of system-wide flushes
These flushes deal with sequence number overflows, such as for long lived threads. These are rare, but interesting from a debugging PoV. As such, display the number of flushes when vmacache debugging is enabled. Signed-off-by: Davidlohr Bueso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
16a7ade8af
commit
f5f302e212
3 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ void vmacache_flush_all(struct mm_struct *mm)
|
|||
{
|
||||
struct task_struct *g, *p;
|
||||
|
||||
count_vm_vmacache_event(VMACACHE_FULL_FLUSHES);
|
||||
|
||||
/*
|
||||
* Single threaded tasks need not iterate the entire
|
||||
* list of process. We can avoid the flushing as well
|
||||
|
|
|
|||
Loading…
Reference in a new issue