Date: Tue, 7 Dec 2021 15:21:24 +0000 From: Matthew Wilcox 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 In-Reply-To: <20211207150927.3042197-2-arnd@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-ID: 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 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.