Received: by 2002:ac8:71d8:0:b0:40f:fb00:664b with SMTP id i24csp220204qtp; Fri, 4 Aug 2023 08:58:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/fLjxCG4+fU/0dkRnl1o2ak/Wv9E2476YxJOmAbYWv2XSeVgAd/6x5pgYHRRH+tiNHLzi X-Received: by 2002:a17:902:b70e:b0:1bb:a922:4a1a with SMTP id d14-20020a170902b70e00b001bba9224a1amr1821667pls.6.1691164709821; Fri, 04 Aug 2023 08:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691164709; cv=none; d=google.com; s=arc-20160816; b=CJpnmTUgL0zrO3QUgPXDBIGToYGxFcMU+zJ0uv3YnqEy1SSHfoRsGO5Mgc3aaupXhR RIRoRmHZ7jU/meu6T6MFrIrJDOPRt59g11r0sE8Gpczd5Eg2+uHlwJ9/lbGEJ/GkdiNt tvo1sy6Y7W2ANZ1C9jhy2fDjVlfxZ3B1RbgoSNqPtUzPdivFDN+39pY+OYRQAbgPgGkT NC4UFLrOL/kXfk6d1dFW6UkbZlGHkP0FRU+2SD9Z/vf+U7Hn7BdB/k6HpgqALbg+TI9x HlhS8e1hjuRWtuBO7LtYiCC4sELN6UqSqyHsDDxvY8YtleMSs7lkvkcZr5sWkj2kaGdG AI6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4nSuSrRvB/eUIaQUwnw+BXiKf+G16D7ch+jFXNS9l8Y=; fh=tpvgsE03II0+R9kYMmcHuMkeEd07Brs5DXPD5RT1R/Y=; b=AhyP6k0onc/T0GWw6sniNWfNCEut19bZGetpvwyd2rBwviXnlDs0kUSXUk3PGFtZ4E fdVXk7+jDzxuKcy0VfCY3Z0uXREFSDPC6GVBGeMRjXUH8mNzQbC0zemGDmA0UXL7/NQv iqj8XLqUIyTNzOyzcvhjZhzdCK8YtxjtH8mdDWeqrohQGPQt05y7xChG/kFmPs9fEU0O mm/Jk+/o66Ni0kkSphk+JlEKA+0tRbMi4QB6XbtyMr019JuN1l/Axg/uxdlQrR1t6coR +JA6m6NjZig6yz0WZDUupWzHQx8db4icKtSPG/WG1s0hYTq0fe6KSodPbGBaaMvxXZ91 l3NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=guM3dTEf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902f60e00b001b7fee7d5f0si1884701plg.25.2023.08.04.08.58.10; Fri, 04 Aug 2023 08:58:29 -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=@kernel.org header.s=k20201202 header.b=guM3dTEf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbjHDPjp (ORCPT + 99 others); Fri, 4 Aug 2023 11:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231263AbjHDPjn (ORCPT ); Fri, 4 Aug 2023 11:39:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F82249C1; Fri, 4 Aug 2023 08:39:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 061246202B; Fri, 4 Aug 2023 15:39:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31522C433C9; Fri, 4 Aug 2023 15:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691163570; bh=WBKOiXxNnEcmIAXLd9bFnF2KFmCPgIBMmS+a6ZOzWKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=guM3dTEfPj9gzW4hZVBn+/1D3e6V0oGJa3WQkuaCaRJm+YEkO/j0g28vpLcq+8KPx 00I5JDimR9O6GRpM1sCbRoDBeqI3dA0US5iDcvRFH1wRzLZGMG/AKi+37CHK3OiKfl Pd3WUGjQp78CvSWurtOz9TKUp2R8T9+xWekamZzkpVJreEREn7gcZJVUpwDMtQgJPa oNlJ1Fd+Wv/UAECk8iLUJUaVzEv4k+34Xo4z1QJAK3CSDmvC6vv3w+O4TwoqgSUVxv yOZLQQe40+3upkBEjN2TRg8dq8CL62TzVM9oUzcd7edWypJQ/9r8RDeBu3CtctpdP3 S7Paz1gf4bygw== From: Christian Brauner To: Christoph Hellwig Cc: 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, Al Viro Subject: Re: more blkdev_get and holder work Date: Fri, 4 Aug 2023 17:39:20 +0200 Message-Id: <20230804-wegelagerei-nagel-e5ba7e7cedd5@brauner> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230802154131.2221419-1-hch@lst.de> References: <20230802154131.2221419-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=3062; i=brauner@kernel.org; h=from:subject:message-id; bh=7FNUYW+x5CSjf6yCNgXxulkGn+cMsTW366YHSfu1h4A=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaSclU4X5tucveB9lDl37gJ9jlmvFGN+KNg9TprAwbY/er8W 31PtjlIWBjEuBlkxRRaHdpNwueU8FZuNMjVg5rAygQxh4OIUgIncNWf4K3Hkgdv/npvLfSQ798adms 9ScvSZ2rptQtc471tqdUeIZzMyHOPQmly1SzxZ11D73stJc0XjnmfPNpO6vb5+SlL6wynWPAA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Wed, 02 Aug 2023 17:41:19 +0200, Christoph Hellwig wrote: > this series sits on top of the vfs.super branch in the VFS tree and does a > few closely related things: > > 1) it also converts nilfs2 and btrfs to the new scheme where the file system > only opens the block devices after we know that a new super_block was > allocated. > 2) it then makes sure that for all file system openers the super_block is > stored in bd_holder, and makes use of that fact in the mark_dead method > so that it doesn't have to fall get_super and thus can also work on > block devices that sb->s_bdev doesn't point to > 3) it then drops the fs-specific holder ops in ext4 and xfs and uses the > generic fs_holder_ops there > > [...] Let's pick this up now so it still has ample time in -next even though we're still missing a nod from the btrfs people. The nilfs to mount_bdev() conversion is probably not super urgent but if wanted a follow-up patch won't be frowned upon. --- Applied to the vfs.super branch of the vfs/vfs.git tree. Patches in the vfs.super branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.super [01/12] fs: export setup_bdev_super https://git.kernel.org/vfs/vfs/c/71c00ec51d83 [02/12] nilfs2: use setup_bdev_super to de-duplicate the mount code https://git.kernel.org/vfs/vfs/c/c820df38784a [03/12] btrfs: always open the device read-only in btrfs_scan_one_device https://git.kernel.org/vfs/vfs/c/75029e14cea6 [04/12] btrfs: open block devices after superblock creation https://git.kernel.org/vfs/vfs/c/364820697dbb [05/12] ext4: make the IS_EXT2_SB/IS_EXT3_SB checks more robust https://git.kernel.org/vfs/vfs/c/4cf66c030db1 [06/12] fs: use the super_block as holder when mounting file systems https://git.kernel.org/vfs/vfs/c/c0188baf8f7e [07/12] fs: stop using get_super in fs_mark_dead https://git.kernel.org/vfs/vfs/c/2a8402f9db25 [08/12] fs: export fs_holder_ops https://git.kernel.org/vfs/vfs/c/ee62b0ec9ff8 [09/12] ext4: drop s_umount over opening the log device https://git.kernel.org/vfs/vfs/c/644ab8c64a12 [10/12] ext4: use fs_holder_ops for the log device https://git.kernel.org/vfs/vfs/c/fba3de1aad77 [11/12] xfs: drop s_umount over opening the log and RT devices https://git.kernel.org/vfs/vfs/c/9470514a171c [12/12] xfs use fs_holder_ops for the log and RT devices https://git.kernel.org/vfs/vfs/c/c6fb2ed736e3