Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp928569rwb; Thu, 4 Aug 2022 13:43:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6E2kFcBGfnRwpKTgYmzQWaAGZ3LVx6SJruBXYB5OGNsbsTLgloj/m+eMumulWOImkKN3PT X-Received: by 2002:a17:907:7ba2:b0:72b:57da:a76e with SMTP id ne34-20020a1709077ba200b0072b57daa76emr2717092ejc.210.1659645837217; Thu, 04 Aug 2022 13:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659645837; cv=none; d=google.com; s=arc-20160816; b=PB+Ou3EtoH3PE8TlVLqqx7NVf3Od4ubrY8vW4bJv2YJe5aStjl2yubfV+n4tVTkrUd SE7IieMsLi117qiAjKyFNKjEGXYB8ExKnTDbXmn+hKeh0o6sLD2e+nLD00unQ7W7LeRR Zn03agxBx9mCmOyV2l7fBwzEuvuXcSRZxd2VZKBwlfvV9vyzTsfq+oQ2dG1HW6NtGZ++ dw89tQXayYZO0BgWH1KLRJB9Ruorun8Jij4H7LSHMVRc0wyUMdZsbeI2HdmZip6zJsxx Bq1QG43Y894E6LtAB9n3PmkETHxsfHrnnLzCoIH8W+n3zeCP4TaxlPItoOEHG9y5aXXv 22Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j3nssgGOsRxAdk5zbSCKB6B+tougXOTHjwPnHNLEXAk=; b=vmOz4RZbG2kWyJWSoiVnepQmWx/pa3SuR9ZEBJYxqHnh4VbnOp1Ar837/mR99dq+fS XPF7ux68jEv0oLJznO68b9QyOSxLvDS1VPbmn94F1JRIs2FNxwKPMMqZB/+EkkRl8hIQ YQaEpIKN56GpS6kXU9yPQDvBbCpaJjwW1p9St8vmlVHkGbXj006ONlRB755q3NQdLHIS xzvNghZtuFGW8zIWJrCmSrVFq7RZuksIziP1KZlZJ5w+0bUef76K6ptKAy7sQL1ymV5V xNkPs8uSyyglGCqBGFeYglaVpv7LWv93JjTSf4pnYL8leQrmEKa/F5tu71bfa/QNSAAr x7tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=G0azAtGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz8-20020a0564021d4800b0043d7872f6easi2595967edb.118.2022.08.04.13.43.31; Thu, 04 Aug 2022 13:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=G0azAtGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237219AbiHDUX6 (ORCPT + 99 others); Thu, 4 Aug 2022 16:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbiHDUX4 (ORCPT ); Thu, 4 Aug 2022 16:23:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E2624F3F; Thu, 4 Aug 2022 13:23:54 -0700 (PDT) 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=j3nssgGOsRxAdk5zbSCKB6B+tougXOTHjwPnHNLEXAk=; b=G0azAtGuDambxjDpzyqDYcBUfZ LsxmuVeodWclf/6+9lPostC4quBhOZy7wpNzCSSHCIXZvHn8e9RhsP/3HvX1e48bDLiQjpett1fPp Pluw6e21Me890vAC28ORsZSley5oy2+ejXMYxsutAWke8I2DUfCJxFOLkmQ/C1MpTkYww5G58dj+f NO2DUstfysuQ+1agReIexwbYTVLFF+uW2H1pIFkKDqaOTXoI/2aTEKvbC4OwgE7gv80kEWFOy3Qa5 VtKyw22vulMPNecC9f5VPVULECwmXgna4cLqH/j2kOxAValZdhz2wXLSDGWhV5SvOmRTRhm55SF5A lyLRwKJg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJhNi-00Ac9i-R7; Thu, 04 Aug 2022 20:23:46 +0000 Date: Thu, 4 Aug 2022 21:23:46 +0100 From: Matthew Wilcox To: Jeff Layton Cc: Enzo Matsumiya , Tom Talpey , linux-cifs@vger.kernel.org, smfrench@gmail.com, pc@cjr.nz, ronniesahlberg@gmail.com, nspmangalore@gmail.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, samba-technical@lists.samba.org, pshilovsky@samba.org Subject: Re: [RFC PATCH 0/3] Rename "cifs" module to "smbfs" Message-ID: References: <20220801190933.27197-1-ematsumiya@suse.de> <20220802193620.dyvt5qiszm2pobsr@cyberdelia> <6f3479265b446d180d71832fd0c12650b908ebe2.camel@kernel.org> <1c2e8880-3efe-b55d-ee50-87d57efc3130@talpey.com> <20220803015655.7u5b6i4eo5sfnryb@cyberdelia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 04, 2022 at 03:03:23PM -0400, Jeff Layton wrote: > On Tue, 2022-08-02 at 22:56 -0300, Enzo Matsumiya wrote: > > On 08/02, Tom Talpey wrote: > > > The initial goal is to modularize the SMB1 code, so it can be completely > > > removed from a running system. The extensive refactoring logically leads > > > to this directory renaming, but renaming is basically a side effect. > > > > > This is a great technical goal. Splitting up cifs.ko into smaller > modules would be great, in addition to being able to turn off smb1 > support. I don't know the CIFS module that well. How do you see it being split up? It's #4 in the list of filesystems: $ size /lib/modules/5.18.0-3-amd64/kernel/fs/*/*.ko |sort -n |tail 369020 28460 132 397612 6112c /lib/modules/5.18.0-3-amd64/kernel/fs/ubifs/ubifs.ko 395793 50398 960 447151 6d2af /lib/modules/5.18.0-3-amd64/kernel/fs/ceph/ceph.ko 477909 58883 10512 547304 859e8 /lib/modules/5.18.0-3-amd64/kernel/fs/nfsd/nfsd.ko 609260 84848 640 694748 a99dc /lib/modules/5.18.0-3-amd64/kernel/fs/f2fs/f2fs.ko 622638 252078 1008 875724 d5ccc /lib/modules/5.18.0-3-amd64/kernel/fs/nfs/nfsv4.ko 717343 111314 1176 829833 ca989 /lib/modules/5.18.0-3-amd64/kernel/fs/ext4/ext4.ko 884247 206051 504 1090802 10a4f2 /lib/modules/5.18.0-3-amd64/kernel/fs/cifs/cifs.ko 890155 159520 240 1049915 10053b /lib/modules/5.18.0-3-amd64/kernel/fs/ocfs2/ocfs2.ko 1193834 274148 456 1468438 166816 /lib/modules/5.18.0-3-amd64/kernel/fs/xfs/xfs.ko 1393088 126501 15072 1534661 176ac5 /lib/modules/5.18.0-3-amd64/kernel/fs/btrfs/btrfs.ko ... but if you look at how NFS is split up: 311322 76200 392 387914 5eb4a /lib/modules/5.18.0-3-amd64/kernel/fs/nfs/nfs.ko 25157 1100 72 26329 66d9 /lib/modules/5.18.0-3-amd64/kernel/fs/nfs/nfsv2.ko 49332 1544 120 50996 c734 /lib/modules/5.18.0-3-amd64/kernel/fs/nfs/nfsv3.ko 622638 252078 1008 875724 d5ccc /lib/modules/5.18.0-3-amd64/kernel/fs/nfs/nfsv4.ko you can save a lot of RAM if you don't need NFSv4 (then there's also nfs_common, 408kB of sunrpc.ko, etc, etc).