Re: [PATCH] mm:add VM_BUG_ON() for page_mapcount()

2014-12-08 Thread Kirill A. Shutemov
On Mon, Dec 08, 2014 at 03:47:47PM +0800, Wang, Yalin wrote: > This patch add VM_BUG_ON() for slab page, > because _mapcount is an union with slab struct in struct page, > avoid access _mapcount if this page is a slab page. > Also remove the unneeded bracket. > > Signed-off-by: Yalin Wang > --- >

RE: [PATCH] mm:add VM_BUG_ON() for page_mapcount()

2014-12-08 Thread Wang, Yalin
> -Original Message- > From: Hillf Danton [mailto:hillf...@alibaba-inc.com] > Sent: Monday, December 08, 2014 5:33 PM > To: Wang, Yalin > Cc: linux-kernel; linux...@kvack.org; linux-arm-ker...@lists.infradead.org; > Andrew Morton; Hillf Danton > Subject: Re: [PATCH] m

Re: [PATCH] mm:add VM_BUG_ON() for page_mapcount()

2014-12-08 Thread Hillf Danton
> > This patch add VM_BUG_ON() for slab page, > because _mapcount is an union with slab struct in struct page, > avoid access _mapcount if this page is a slab page. > Also remove the unneeded bracket. > > Signed-off-by: Yalin Wang > --- > include/linux/mm.h | 3 ++- > 1 file changed, 2 insertio