Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4102387imm; Mon, 30 Jul 2018 08:42:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcJRWiOnOHgcXHLWDbN+Yvms5aLUtjqcDQDlZppGa254eLzMJexxjTVtIvHuqMm7+XVYZ7y X-Received: by 2002:a65:4849:: with SMTP id i9-v6mr16900378pgs.350.1532965355980; Mon, 30 Jul 2018 08:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532965355; cv=none; d=google.com; s=arc-20160816; b=nyxXxTkPEuwkvay798pBOl4TgFCQyTtpxITwjH2OcYaevRneC+jPAfz4s+NIXXAB+u kEzI//HVQkPeCufwRsD3eVi2WRrIqS7EcNamXPDOcAWqHGO+07u8ooIVPmeJG/De60Wp Pz6cMFrIS5m2VmdkPWXy/PIdPigPnzgsfIixpAjnPlbLPWtOj2FORCRyfIOIlqmSRt7l tDK/iZX5jANZBLqNMavtpPWcR8vtF5dZogq1puCz6RTuxpHIJN/e5oPpdGfHTeXos9HN cf1y57cp0+U5m9MCbQme3XbXhQtbM5vVGLP1ub4Mzkj9CJCAJ315jyrHKdY/7gxI7uos IHBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=hU+2d1whAiFhidn/+Tbhzdick4lqjP0hZOHZ67piysI=; b=UiivWEDens7xpfQElibmwEA4PinbQNabRVbzNkm504SGoRjCxxgHTj36oq3sIceAcR gQpSsDqnWLlaOHaEABbDqAJcH3+ECG1x/6LUglzC0LAbtgT27ApkAxxdGmJSXGy7cRAa P/S3cIzLfpXctUkdE7KyJ2D6weYTkbncuNWYfyTfUtNLsD66gtuf5ea7Jo2dn2SApUzV fDSlbkpm76nAB3ZymvbrcAYzfvmuu7aizhevyuTSyN0dM4s6iwR5v6aa5/Wo3f0pENyc eA0lvx68nusKvAGxjBnFnnRhg40lwxKQXeGbRX4LDAiR7BSwCLBRGSLA9hrbCWh0y5GY bgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=gQtJeYiT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si11681336pfl.349.2018.07.30.08.42.21; Mon, 30 Jul 2018 08:42:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=gQtJeYiT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727037AbeG3RRC (ORCPT + 99 others); Mon, 30 Jul 2018 13:17:02 -0400 Received: from a9-112.smtp-out.amazonses.com ([54.240.9.112]:53956 "EHLO a9-112.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbeG3RRC (ORCPT ); Mon, 30 Jul 2018 13:17:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1532965289; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=mAs/gjO4iO3GBN5sGixa//mEfHrd0S3vx/I8p59mFTo=; b=gQtJeYiTHukMn8FrIP33KK1gP6BS6znZytenQq//17Yo0Jiz3Jstk5UIT4Hm/t2l yFZWONN8lKIgNHGm+eQdFrOjcbmGn+kMs51vwuKLjYbtYi6cwfH00dvMhZZk/lDDsxM whViy+3iYC8zyn0JAzOnBExsZGYvWtqN2MwW6oPc= Date: Mon, 30 Jul 2018 15:41:29 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Vlastimil Babka cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Roman Gushchin , Michal Hocko , Johannes Weiner , David Rientjes , Joonsoo Kim , Mel Gorman , Matthew Wilcox Subject: Re: [PATCH v3 2/7] mm, slab/slub: introduce kmalloc-reclaimable caches In-Reply-To: <20180718133620.6205-3-vbabka@suse.cz> Message-ID: <01000164ebd9fc22-31811702-8b80-46c2-a249-a1960c37ae01-000000@email.amazonses.com> References: <20180718133620.6205-1-vbabka@suse.cz> <20180718133620.6205-3-vbabka@suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.07.30-54.240.9.112 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jul 2018, Vlastimil Babka wrote: > index 4299c59353a1..d89e934e0d8b 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -296,11 +296,12 @@ static inline void __check_heap_object(const void *ptr, unsigned long n, > (KMALLOC_MIN_SIZE) : 16) > > #define KMALLOC_NORMAL 0 > +#define KMALLOC_RECLAIM 1 > #ifdef CONFIG_ZONE_DMA > -#define KMALLOC_DMA 1 > -#define KMALLOC_TYPES 2 > +#define KMALLOC_DMA 2 > +#define KMALLOC_TYPES 3 > #else > -#define KMALLOC_TYPES 1 > +#define KMALLOC_TYPES 2 > #endif I like enums.... Acked-by: Christoph Lameter