From: Wang, Yalin Date: Wed, 11 Feb 2015 23:24:48 +0000 (-0800) Subject: mm: add VM_BUG_ON_PAGE() to page_mapcount() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~115^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d148e218a0d0566b1c06f2f45f1436d53b049b2;p=pandora-kernel.git mm: add VM_BUG_ON_PAGE() to page_mapcount() Add VM_BUG_ON_PAGE() for slab pages. _mapcount is an union with slab struct in struct page, so we must avoid accessing _mapcount if this page is a slab page. Also remove the unneeded bracket. Signed-off-by: Yalin Wang Acked-by: Kirill A. Shutemov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed