Received: by 10.223.185.116 with SMTP id b49csp2195294wrg; Thu, 15 Feb 2018 07:57:15 -0800 (PST) X-Google-Smtp-Source: AH8x225N7M/uotKvJR68u0jybWBFyOQoxqZBz7hiKuMuqH3SCIemq4TC0K1n3Qq9jhk6LZ0icb/p X-Received: by 2002:a17:902:6b81:: with SMTP id p1-v6mr1346768plk.348.1518710235031; Thu, 15 Feb 2018 07:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518710234; cv=none; d=google.com; s=arc-20160816; b=ZLYKmgotzjYx28fhcvYt8EiYrT2QyHZqKSPM3pSSnSTfibonyxHyO0SfBLzMuy1aKK g0yM+gD0r9+Yi9lN6nF7ENhqjRfDI0bAcVx6kmBzLZ5PgWsTqetYrUWu200IyH00Tw1j 7kjpkulVJVXIpxmEqT1yNoCV34qpodu6TBx+/5XPU51LlyWEqSfb2/oDVeSn5T03rqcq HvXTPU5/8i45gfQK9enTM88vYAyRXpaRrrF+8e5vuKCc636uXcLLYQBI7rZQOxTbuAms 5aTRiTTqvJfyqsL7h4Q4kPHk4gr6P77Mfci2GTXVdqCkWTMbeMBJk1KHrS/F+2Ql71gg +8cw== 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=LEQUhwUneM6e+kjidNd7RSM/o2/hS5byPj9+LdHKN8E=; b=VOp1+9FdIra9SzPBTyODq4aUtcUaXhRrVUKAmPPiEn2xi8iQkYgWTiSSwHw/QkKlFV pSCFnsqA/LYF9IrI5qN2AwgTqs86kzBlIR7/C8YA6Asv4FIof2Ko3wj30FPL4FgwSftg KJ8ZbV4ysnB22O2+WGffNkVqZYwlpyoVoE4uoxJPDdEi2XgT5aUEaZeOy0l1JXgH+FyE l93tVOL8DVcqPjBEBfryEr9SDnSqmYyCYTW0NGmHLhwYFdqze947DjBnQwroSoEDf6k1 RbBxNq5Jmr11AZXSftVZMxBLqOnFYT8LB5Xw/Kkg6gzwdVyq5zrcUDjUSGgw4N7kGSm7 SYSw== 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 c16-v6si911506pli.330.2018.02.15.07.56.59; Thu, 15 Feb 2018 07:57:14 -0800 (PST) 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 S1425285AbeBOPzQ (ORCPT + 99 others); Thu, 15 Feb 2018 10:55:16 -0500 Received: from resqmta-ch2-03v.sys.comcast.net ([69.252.207.35]:60176 "EHLO resqmta-ch2-03v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424460AbeBOPzO (ORCPT ); Thu, 15 Feb 2018 10:55:14 -0500 Received: from resomta-ch2-05v.sys.comcast.net ([69.252.207.101]) by resqmta-ch2-03v.sys.comcast.net with ESMTP id mLrZewbbZFtNCmLsPewD1v; Thu, 15 Feb 2018 15:55:13 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-05v.sys.comcast.net with SMTP id mLsNe5oulJ5LxmLsOe8XEw; Thu, 15 Feb 2018 15:55:13 +0000 Received: by gentwo.org (Postfix, from userid 1001) id E4FAD116013F; Thu, 15 Feb 2018 09:55:11 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id E3597116012E; Thu, 15 Feb 2018 09:55:11 -0600 (CST) Date: Thu, 15 Feb 2018 09:55:11 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: Andrew Morton , Matthew Wilcox , linux-mm@kvack.org, Kees Cook , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct In-Reply-To: <20180214201400.GD20627@bombadil.infradead.org> Message-ID: References: <20180214182618.14627-1-willy@infradead.org> <20180214182618.14627-3-willy@infradead.org> <20180214201400.GD20627@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: MS4wfNVaI+XgawwFVUGU20lFuYHE16cSGBBejKwvpTCgvKFXfJsfHor9PVo85ag26Wmk/668QQpkzNM9JcHOM12Yv0jHWQISo4XXEjNuRhgUMzGjmV9FjKiR E3p9PkrnZ6IzdJAmJQbBtMSQwb2BgEmGLJ1iH4zCrcOyydLzsn06PwEhJVTLJAHOK70Lcp1hglCXNIWxXryqPm554JZssXLMqxtfOKlcgqAB2l162NjhLUIo Il/K0DzlxiwkW9hSzbIYAVNuKQx+5ZPYVDSoVdSuwP0i/rpSczU1/n91uUiMDUM6whV/vjd7EXCOZZkFXkml7pqPqEw36Yi6UaoimXDvOUCyyx+LzwSrf4WQ LZ6Xgs3BT0S/REcZCzzD9aMQ1pCFFA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Feb 2018, Matthew Wilcox wrote: > > Uppercase like the similar KMEM_CACHE related macros in > > include/linux/slab.h?> > > Do you think that would look better in the users? Compare: Does looking matter? I thought we had the convention that macros are uppercase. There are some tricks going on with the struct. Uppercase shows that something special is going on. > Making it look like a function is more pleasing to my eye, but I'll > change it if that's the only thing keeping it from being merged. This should be consistent throughout the source.