Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753325AbbBKPoh (ORCPT ); Wed, 11 Feb 2015 10:44:37 -0500 Received: from resqmta-ch2-04v.sys.comcast.net ([69.252.207.36]:44759 "EHLO resqmta-ch2-04v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413AbbBKPog (ORCPT ); Wed, 11 Feb 2015 10:44:36 -0500 Date: Wed, 11 Feb 2015 09:44:34 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Vladimir Davydov cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , Pekka Enberg , David Rientjes , Joonsoo Kim Subject: Re: [PATCH -mm] slub: kmem_cache_shrink: init discard list after freeing slabs In-Reply-To: <20150211154128.GA26049@esperanza> Message-ID: References: <1423627463.5968.99.camel@intel.com> <1423642582-23553-1-git-send-email-vdavydov@parallels.com> <20150211154128.GA26049@esperanza> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 608 Lines: 14 On Wed, 11 Feb 2015, Vladimir Davydov wrote: > > Also the promote array should also be initialized in the loop right? > > I do initialize promote lists in the loop using list_splice_init, but > yeah, initializing them in the beginning of the loop would look more > readable indeed. The updated patch is below. Thanks! Acked-by: Christoph Lameter -- 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/