From: Kirill A. Shutemov Date: Thu, 14 Jan 2016 23:21:43 +0000 (-0800) Subject: mm: make sure isolate_lru_page() is never called for tail page X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bb5b8589767a300014ba21c5984e6a4d15f0702d;p=openwrt%2Fstaging%2Fblogic.git mm: make sure isolate_lru_page() is never called for tail page The VM_BUG_ON_PAGE() would catch such cases if any still exists. Signed-off-by: Kirill A. Shutemov Acked-by: Michal Hocko Acked-by: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index bb0cbd4c9f01..108bd119f2f6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1426,6 +1426,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);