summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorWang, Yalin2015-02-12 00:24:48 +0100
committerLinus Torvalds2015-02-12 02:06:00 +0100
commit1d148e218a0d0566b1c06f2f45f1436d53b049b2 (patch)
tree39e416568334e656764c3a5eab0b5939f6121779 /mm/huge_memory.c
parentmm: add fields for compound destructor and order into struct page (diff)
downloadkernel-qcow2-linux-1d148e218a0d0566b1c06f2f45f1436d53b049b2.tar.gz
kernel-qcow2-linux-1d148e218a0d0566b1c06f2f45f1436d53b049b2.tar.xz
kernel-qcow2-linux-1d148e218a0d0566b1c06f2f45f1436d53b049b2.zip
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 <yalin.wang@sonymobile.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions