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 BC731C433FE for ; Wed, 8 Dec 2021 10:13:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231311AbhLHKQg (ORCPT ); Wed, 8 Dec 2021 05:16:36 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:50718 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhLHKQf (ORCPT ); Wed, 8 Dec 2021 05:16:35 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5277DB82058; Wed, 8 Dec 2021 10:13:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E39A2C00446; Wed, 8 Dec 2021 10:12:53 +0000 (UTC) Date: Wed, 8 Dec 2021 11:12:50 +0100 From: Christian Brauner To: Arnd Bergmann Cc: Linux Kernel Mailing List , Arnd Bergmann , Al Viro , Andrew Morton , Guenter Roeck , Kees Cook , Linus Torvalds , Masahiro Yamada , Matthew Wilcox , 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 FS-devel Mailing List , Linux Kbuild mailing list , llvm@lists.linux.dev Subject: Re: [RFC 3/3] headers: repurpose linux/fs_types.h Message-ID: <20211208101250.ndtt53bybrwgklad@wittgenstein> References: <20211207150927.3042197-1-arnd@kernel.org> <20211207150927.3042197-4-arnd@kernel.org> <20211208100514.7egjy5hraziu4pme@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 08, 2021 at 11:10:26AM +0100, Arnd Bergmann wrote: > On Wed, Dec 8, 2021 at 11:05 AM Christian Brauner > wrote: > > > > On Tue, Dec 07, 2021 at 04:09:27PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > linux/fs_types.h traditionally describes the types of file systems we > > > deal with, but the file name could also be interpreted to refer to > > > data types used for interacting with file systems, similar to > > > linux/spinlock_types.h or linux/mm_types.h. > > > > > > Splitting out the data type definitions from the generic header helps > > > avoid excessive indirect include hierarchies, so steal this file > > > name and repurpose it to contain the definitions for file, inode, > > > address_space, super_block, file_lock, quota and filename, along with > > > their respective callback operations, moving them out of linux/fs.h. > > > > > > The preprocessed linux/fs_types.h is now about 50KB, compared to > > > over 1MB for the traditional linux/fs.h, and can be included from > > > most other headers that currently rely on type definitions from > > > linux/fs.h. > > > > > > Signed-off-by: Arnd Bergmann > > > --- > > > > I tried to apply the series to take a closer look but it fails to apply > > cleanup down to v5.15 and any release after that. What's the base I > > should use for this? > > It is based on yesterday's linux-next plus additional patches I used > for testing. Sorry about the extra troubles, but this was the most No no, that's perfectly fine! > convenient way for me, as it lets me find build regressions in random > configs more easily when I have a base tree that builds randconfig > warning-free. > > The patches are at the top of my randconfig tree [1] at the moment, > so you can try out that tree, or rebase the patches from there. > > Arnd > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=randconfig-5.17-next Thanks for pointing me in the right direction. Christian