commit | 1d148e218a0d0566b1c06f2f45f1436d53b049b2 | [log] [tgz] |
---|---|---|
author | Wang, Yalin <Yalin.Wang@sonymobile.com> | Wed Feb 11 15:24:48 2015 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Feb 11 17:06:00 2015 -0800 |
tree | 39e416568334e656764c3a5eab0b5939f6121779 | |
parent | e4b294c2d8f73af4cd41ff30638ad0e4769dc56a [diff] |
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>