Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755134AbbHYRYS (ORCPT ); Tue, 25 Aug 2015 13:24:18 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:32915 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751315AbbHYRYR (ORCPT ); Tue, 25 Aug 2015 13:24:17 -0400 Date: Tue, 25 Aug 2015 20:24:14 +0300 From: "Kirill A. Shutemov" To: Vlastimil Babka Cc: "Kirill A. Shutemov" , Andrew Morton , Hugh Dickins , Andrea Arcangeli , Dave Hansen , Johannes Weiner , Michal Hocko , David Rientjes , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonsoo Kim , Andi Kleen Subject: Re: [PATCHv3 1/5] mm: drop page->slab_page Message-ID: <20150825172414.GB4881@node.dhcp.inet.fi> References: <1439976106-137226-1-git-send-email-kirill.shutemov@linux.intel.com> <1439976106-137226-2-git-send-email-kirill.shutemov@linux.intel.com> <55DB31F8.4020200@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55DB31F8.4020200@suse.cz> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 29 On Mon, Aug 24, 2015 at 05:02:16PM +0200, Vlastimil Babka wrote: > On 08/19/2015 11:21 AM, Kirill A. Shutemov wrote: > >Since 8456a648cf44 ("slab: use struct page for slab management") nobody > >uses slab_page field in struct page. > > > >Let's drop it. > > Ah, how about dropping this comment in mm/slab.c:slab_destroy() as well? > > /* > * RCU free overloads the RCU head over the LRU. > * slab_page has been overloeaded over the LRU, > * however it is not used from now on so that > * we can use it safely. > */ Actually, whole block can be replaced by call_rcu(&page->rcu_head, kmem_rcu_free); Thanks. -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/