linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: make sure isolate_lru_page() is never called for tail page
@ 2015-12-16 14:29 Kirill A. Shutemov
  2015-12-16 14:47 ` Michal Hocko
  0 siblings, 1 reply; 3+ messages in thread
From: Kirill A. Shutemov @ 2015-12-16 14:29 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Michal Hocko, linux-mm, Kirill A. Shutemov

The VM_BUG_ON_PAGE() would catch such cases if any still exists.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 mm/vmscan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 964390906167..05dd182f04fd 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1436,6 +1436,7 @@ int isolate_lru_page(struct page *page)
 	int ret = -EBUSY;
 
 	VM_BUG_ON_PAGE(!page_count(page), page);
+	VM_BUG_ON_PAGE(PageTail(page), page);
 
 	if (PageLRU(page)) {
 		struct zone *zone = page_zone(page);
-- 
2.6.2

--
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 related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-22 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16 14:29 [PATCH] mm: make sure isolate_lru_page() is never called for tail page Kirill A. Shutemov
2015-12-16 14:47 ` Michal Hocko
2015-12-22 15:57   ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).