Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24A2FC433F5 for ; Tue, 7 Dec 2021 15:21:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238201AbhLGPZB (ORCPT ); Tue, 7 Dec 2021 10:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234200AbhLGPY7 (ORCPT ); Tue, 7 Dec 2021 10:24:59 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81CF3C061574; Tue, 7 Dec 2021 07:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2G4sRuPvASvykdf+RGVh/2mIPuDGyjKFYNtqvJW5YbM=; b=TJMN7qGXhOyJAf6ImL+1cj1WMU iCqFS+lv8r1i9byGRIhDXENs7YBeBrRiCPVMdeQQnQb6GtYRIF//czqEfQY6ZpbJdd7nLeTyARYZ7 Je9FQd89oAqelj1J8R0ypJ15ydaneWyPMob5Sin/bkD7xmrPGNw5RnXvaHoy5zAbPciNm86MZpEtG w6HtpoJMFwgYjwGx/JubZ5/jmXB1NgnkfBUNvEllFM/aMSPj15CEntTE5ppQHa3b58p/tqS68WuNp GHd53UnvVhfLURRf0XVTCJci4SSCrsAmzsCPrdHK3PKyq52TIxSsM/T+zdYOM06X2zv6cZijeIr5V v9Hpl1YQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mucHU-007Th6-3V; Tue, 07 Dec 2021 15:21:24 +0000 Date: Tue, 7 Dec 2021 15:21:24 +0000 From: Matthew Wilcox To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Al Viro , Andrew Morton , Guenter Roeck , Kees Cook , Linus Torvalds , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Stephen Rothwell , kernel test robot , Ingo Molnar , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Tejun Heo , kernelci@groups.io, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [RFC 1/3] headers: add more types to linux/types.h Message-ID: References: <20211207150927.3042197-1-arnd@kernel.org> <20211207150927.3042197-2-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211207150927.3042197-2-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 07, 2021 at 04:09:25PM +0100, Arnd Bergmann wrote: > +struct list_lru { > + struct list_lru_node *node; > +#ifdef CONFIG_MEMCG_KMEM > + struct list_head list; > + int shrinker_id; > + bool memcg_aware; > +#endif > +}; This is the only one that gives me qualms. While there are other CONFIG options mentioned in types.h they're properties of the platform, eg CONFIG_HAVE_UID16, CONFIG_64BIT, CONFIG_ARCH_DMA_ADDR_T_64BIT, etc. I dislike it that changing this CONFIG option is going to result in rebuilding the _entire_ kernel. CONFIG_MEMCG_KMEM just isn't that central to how everything works.