linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] mm: fix mlock incorrent event account
@ 2017-05-25  7:59 zhongjiang
  2017-05-25  8:13 ` Michal Hocko
  0 siblings, 1 reply; 6+ messages in thread
From: zhongjiang @ 2017-05-25  7:59 UTC (permalink / raw)
  To: akpm; +Cc: vbabka, mhocko, qiuxishi, linux-mm, zhongjiang

From: zhong jiang <zhongjiang@huawei.com>

when clear_page_mlock call, we had finish the page isolate successfully,
but it fails to increase the UNEVICTABLE_PGMUNLOCKED account.

The patch add the event account when successful page isolation.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 mm/mlock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/mlock.c b/mm/mlock.c
index c483c5c..941930b 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -64,6 +64,7 @@ void clear_page_mlock(struct page *page)
 			    -hpage_nr_pages(page));
 	count_vm_event(UNEVICTABLE_PGCLEARED);
 	if (!isolate_lru_page(page)) {
+		count_vm_event(UNEVICTABLE_PGMUNLOCKED);
 		putback_lru_page(page);
 	} else {
 		/*
-- 
1.8.3.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-26  3:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25  7:59 [RFC PATCH] mm: fix mlock incorrent event account zhongjiang
2017-05-25  8:13 ` Michal Hocko
2017-05-25 12:14   ` zhong jiang
2017-05-25 13:48   ` zhong jiang
2017-05-25 14:19     ` Michal Hocko
2017-05-26  3:57       ` zhong jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox