Received: by 10.192.165.156 with SMTP id m28csp753687imm; Mon, 16 Apr 2018 08:12:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HY/nBuKNnVOt7o4SCa0S6rkKz6byi82g9mZB34bHVvI5DH15kZHF3A/4vkoApPHv+CVt4 X-Received: by 10.98.194.26 with SMTP id l26mr21878049pfg.47.1523891522379; Mon, 16 Apr 2018 08:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523891522; cv=none; d=google.com; s=arc-20160816; b=BFqYTxyjwaFbnL+1vhm3wJfxkuP4ZkFiYm9CyKAOKrH46UlRzpFFh6areLA771PwTz RvcmfsxCZ5+7AnO/+yc4uSsnyAgARmuHg9RWc675+Z7Tdaqza2QkJBM4HJTaZdwGslls Py4LzOMq01yWfLhDHunHUSQvmyrVlApJo7BsO6u6uUY8J4pWk4oimrC2itXW5QxumUJ0 qGlUPc2JcWCzM0a02B4loFTv5ObeWqKs2wc9SLmF+yIRKFJfiTiOA7VVfVyQBzpt/uqk +5gDvdLPSVyNg9QXD8pNKw3FlTg/QAOLY4m66cNV9FkLCzJeiH61QbcFFVg5egTrr3Lp 8QUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Twt59i24huQtbc5TgPiHDXBS2wvPaO4IyTBH+oigCks=; b=ROAi+Lq3+p1NVDq2X1eTvcjlj5j2ebGk7g2qOokyBDHE+htK6Zthk2f9kWnFHas93G fZ/kG843kqMswQuL/Se4kWbe8Dr3/Z/7ru23HOutOJx4s8Nu6OdiTQTDKy1G8D4eylnr +GygiPA0g+sVz0rWG5koNR8EjOEE/wrdln6EeWs/mQSBDEi5X2f4N2ZY8znu6VDoEZSI ZGnnUDSwQhtH9zdP+oWMKdr4InpHivQqYOhhELKYxMnKQNnvIlYuqj7ank15ztZJ5mt1 Cudo3O+laeYOJhtyfLvpD3wI+JCfl2vBDiRtIaQFZsYWtBZYyKogP4kI2nBLBYUu6kqC NmrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 196si9835591pgb.674.2018.04.16.08.11.48; Mon, 16 Apr 2018 08:12:02 -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; 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 S1751870AbeDPPKZ (ORCPT + 99 others); Mon, 16 Apr 2018 11:10:25 -0400 Received: from resqmta-ch2-01v.sys.comcast.net ([69.252.207.33]:59860 "EHLO resqmta-ch2-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099AbeDPPKY (ORCPT ); Mon, 16 Apr 2018 11:10:24 -0400 Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-01v.sys.comcast.net with ESMTP id 85l5fdEkItYHF85lvfheyT; Mon, 16 Apr 2018 15:10:23 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-03v.sys.comcast.net with SMTP id 85lsfsy7dM2Ov85ltfs7EB; Mon, 16 Apr 2018 15:10:23 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 83FB911616AE; Mon, 16 Apr 2018 10:10:20 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 8178511616A8; Mon, 16 Apr 2018 10:10:20 -0500 (CDT) Date: Mon, 16 Apr 2018 10:10:20 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: linux-mm@kvack.org, Matthew Wilcox , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Mel Gorman Subject: Re: [PATCH v3 2/2] slab: __GFP_ZERO is incompatible with a constructor In-Reply-To: <20180412191322.GA21205@bombadil.infradead.org> Message-ID: References: <20180411060320.14458-1-willy@infradead.org> <20180411060320.14458-3-willy@infradead.org> <20180411192448.GD22494@bombadil.infradead.org> <20180411235652.GA28279@bombadil.infradead.org> <20180412142718.GA20398@bombadil.infradead.org> <20180412191322.GA21205@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfLGxPMy/Noi9QztCI8seSVlPMuW+vtUlus2sWjnmzYHlTjgvr9/JqQ4xFkuPscbhASy8a7CO7BoNVfptXl2i6jZZDK73ooxSjoBNHQVUDXFsW/HIh086 X53mm4/NlGuPFo3U4YdjVClvoXtRUq/RUQHsn5b8MJzJVAhth+4UPH561BAqZh1BJ4JHJBsAMJYQrDOESZGkygXX0ltc0LPaAa19nD5YU+VxZ20zna931pO7 6ygy42FNFCrB6gNWOij/4Fz4NZeS6GM29n/hwUMoqLMAeyM0N8D/1lblLeUJDM3hE5Zr97Vf/s3X3L4WEaF1T33TlyrY/95Jylr4xTAXYuvIDcxd8Q8jCsZR XrmLCWTTEJlDcFXtJH5htp99qePwLs5vi3J7TalNb29jAsqm0q1acbrp2aL/8k4ovniaOjH3dLJwJVU9Tt0en4l0Igb6zTZlnX2Sk4Z5pEZussaoRgR9npg4 U5aMMjiygzCM5P+c Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Apr 2018, Matthew Wilcox wrote: > __GFP_ZERO requests that the object be initialised to all-zeroes, > while the purpose of a constructor is to initialise an object to a > particular pattern. We cannot do both. Add a warning to catch any > users who mistakenly pass a __GFP_ZERO flag when allocating a slab with > a constructor. Acked-by: Christoph Lameter