Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2300781rwo; Thu, 3 Aug 2023 07:35:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlEwg+7DrPPBNLqppwxxdaybZ9pN7N4IAc02fvSCdsUqBFxMpJALMZreZZzXpLAcb/Isj7f4 X-Received: by 2002:a05:6808:209c:b0:3a7:20ff:5182 with SMTP id s28-20020a056808209c00b003a720ff5182mr17778908oiw.5.1691073300493; Thu, 03 Aug 2023 07:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691073300; cv=none; d=google.com; s=arc-20160816; b=wBGvDbxl1Wx5bLlQbANbPHip0CFJwbUVF6DKSYPytcoPW6h9/AokpE8jKLpDcKwdz/ 8YzwEQoe+2v4xJjppIuODRgp8S6Ns1o7XSSXGbNQcqO4KXaD8Ah09Cd/VpKvZAfk58ys 6QNmaU/EQkcrs6K0922S267C3aj6Gi/cexOOYWB3oNDCJ7iuIH4md7Sl2MtQ4ScAf0xG giHoA4cGSmLrlT9Qxj2HLAVCxTLmH8CuSqFfU1k5V7ZPk+dAMEXws4RM41Wq1lNJu1Fw C2Scq/oy9IA4tsUwDjMejGIdZsGOju42TRu4OF/mS4bvzoWtIbBDROigM5U4moVauMOb ziXQ== 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 :dkim-signature; bh=du0Z70X155ISlaXGxW4wp6Y48mig4odO4voIGMDl2xk=; fh=wuOMse76qtNuGj53rjtYpjyLfPslK5YzTYUod4PV/qk=; b=dzqTJG66FUglSJYhPUoB4pjrtxv8uAN1t5Pg53PjQOiSRTIr7lNdkWLQMm3rAPxXkx HfiUNSZ4HgNswlZo2bPGzYuaQrZN0UnBacIr4OzFjY9a0Tb90uNgEDXL8ZTRg3zkSxgU BRLQAQFEC5QlE0nLBXuTlodzoc+WaCebJO1HrskADUTymt7JQucYIgOaQGolkysugIpU LcBcI3TrblYoQ2QeCK6AnF8+RiCLLUTaB2RPcnSBwfabd2hAIuW9fuRhT98QgZcxvb50 Kl50aMiCvdH6OB5iibqWDUjIZGL3o1lYL5KK5twEOpAMq0qoE2zO2sktrRsBztZCEnZp 2xdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=WSThLGh5; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 s34-20020a632162000000b00563dc234457si12267636pgm.377.2023.08.03.07.34.45; Thu, 03 Aug 2023 07:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@suse.cz header.s=susede2_rsa header.b=WSThLGh5; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234795AbjHCNim (ORCPT + 99 others); Thu, 3 Aug 2023 09:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233758AbjHCNhg (ORCPT ); Thu, 3 Aug 2023 09:37:36 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E60149D7; Thu, 3 Aug 2023 06:33:33 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0427421905; Thu, 3 Aug 2023 13:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691069611; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=du0Z70X155ISlaXGxW4wp6Y48mig4odO4voIGMDl2xk=; b=WSThLGh5TEJlC2zqxUr829BXGh9BB964D/DpAf80OivGVyDFjKi8qi3yL2jZmX2XVxeHql 0TKeSDcOHnYIT4J24RhGZYydOnwkzEiWP2/UykyXLONZlsOKV3dQWpzTpXbJZJZ88qyNor 7GCVNVcrD3BsRADBFqYCtXRYyEu/TnI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691069611; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=du0Z70X155ISlaXGxW4wp6Y48mig4odO4voIGMDl2xk=; b=bFFXY2fQpz4y83Dou+dieZJmMgc/fDw9xHqvionrKHFPePEk3QgCOGG9fcv6pv8LVaYKVs 6FTlW6XPrhE8WQAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E52E2134B0; Thu, 3 Aug 2023 13:33:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lOHrN6qsy2QWcwAAMHmgww (envelope-from ); Thu, 03 Aug 2023 13:33:30 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 80941A076B; Thu, 3 Aug 2023 15:33:30 +0200 (CEST) Date: Thu, 3 Aug 2023 15:33:30 +0200 From: Jan Kara To: Christoph Hellwig Cc: Al Viro , Christian Brauner , Jan Kara , Chris Mason , Josef Bacik , David Sterba , Theodore Ts'o , Andreas Dilger , Jaegeuk Kim , Chao Yu , Ryusuke Konishi , "Darrick J. Wong" , Jens Axboe , linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nilfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 06/12] fs: use the super_block as holder when mounting file systems Message-ID: <20230803133330.dstks7aogjogqdd5@quack3> References: <20230802154131.2221419-1-hch@lst.de> <20230802154131.2221419-7-hch@lst.de> <20230803115131.w6hbhjvvkqnv4qbq@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803115131.w6hbhjvvkqnv4qbq@quack3> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org On Thu 03-08-23 13:51:31, Jan Kara wrote: > On Wed 02-08-23 17:41:25, Christoph Hellwig wrote: > > The file system type is not a very useful holder as it doesn't allow us > > to go back to the actual file system instance. Pass the super_block instead > > which is useful when passed back to the file system driver. > > > > Signed-off-by: Christoph Hellwig > > Nice, this is what I also wanted to eventually do :). Feel free to add: > > Reviewed-by: Jan Kara As a side note, after this patch we can also remove bdev->bd_super and transition the two real users (mark_buffer_write_io_error() and two places in ocfs2) to use bd_holder. Ext4 also uses bd_super but there it is really pointless as we have the superblock directly available in that function anyway. Honza -- Jan Kara SUSE Labs, CR