Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2596542rwo; Thu, 3 Aug 2023 11:45:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsCRNSGGcqN5JnhZxvJjGcx76YlfYjmZTa2/F064WMgN5y1kNMDVQeLr/uaBDUPuToSIRp X-Received: by 2002:a17:906:6a19:b0:99c:602b:6a67 with SMTP id qw25-20020a1709066a1900b0099c602b6a67mr2849436ejc.59.1691088320661; Thu, 03 Aug 2023 11:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691088320; cv=none; d=google.com; s=arc-20160816; b=Z+UR0EZmpToPqFwr75LEUSNV6Y/Q5OeD7kHvJXkYGaDgP2mFalJ4rk+Bkx8DhVDLMn w/WCetPsVtzS7xB+dPGxApZ9KPyUM6Kv/kq5r/7cpZJOhRVPUnXNt3388i7lea4GWSq8 jQzbfzSYdW4AT3BhIEM8zp9RjrU+mL39vFelGGO8NDt6BMl4rhUgAKhRdvTfwHfui/8G rxC2L50nU/UuvnR/z+cw/fvOTnie0vvENXL0EuCzLGaT1oI1lfXZJbIdYaFEC2sit5YO BCMHFvvO/KbXPQ8MA1iP2dmORcgro2xTuuIoJzpSztje7aUp21bHF+t0ereP+7bdUmM7 FXDA== 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=+u3l9TwYlN5F0bLxygCRRfY/pzb6e3ePMnicjpEYyNw=; fh=TSIUzfHoMbtlq9AZT2KN2c7+//wIJMQ4+yn9Y1L5788=; b=in8nyX4I8tgSiJmVG2+oLL1T3/45IE3t4/XkFocTFML/qRqNAyhqNnykdnrVDrKZYw RXnp0mRWrKK4oQOE0nwvjLEurhw4m/63h5O2Ztyz/cY3D5Knv+7DDzuzZLi0jjoPYwZx +Jkk96Ba2R7qoSszlTmzp17eIoXQNRGbEhlJ81wCDonPiWPH9GDiY1vd0JQrGE+GIM5B f3Jqf7V97EhCed3Hh69ruE//Ikl3Ghd/RCJJg+yk7CVIAnTMwSIB6qnemyaV1JWuG4Fi 31YZlk+lUk/gwr7ff3W4BWU4XM4GYdkUw2lkggCgPL5l7USKzy9TrAd0Z1gCW2jdgDBc iqqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M+0H21hP; 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 os2-20020a170906af6200b009895e9b8819si264578ejb.1051.2023.08.03.11.44.55; Thu, 03 Aug 2023 11:45:20 -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=M+0H21hP; 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 S230404AbjHCSPV (ORCPT + 99 others); Thu, 3 Aug 2023 14:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbjHCSPT (ORCPT ); Thu, 3 Aug 2023 14:15:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CEF81704; Thu, 3 Aug 2023 11:15:18 -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 1506F61E67; Thu, 3 Aug 2023 18:15:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 356B0C433C7; Thu, 3 Aug 2023 18:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691086517; bh=7WvYC67Xe7oFF+cFC3hBpoW1fSKlO5ncgxOAS6uNu5M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M+0H21hPL+ViqgirVBRmgZ4PVVO0IsTWsesv9cA8GHZUL2nO1Jaskrh1hTcb8hJgn zcbTF80tO8RHk8SPGrBaIY1HWV9lAP9kNCAvgF90TSNFmKJ61pagPvH2VFoo87Hcb6 R4MGzUpmn/vOw9saQfSEZSvf4/PMN97ff43Y1NGByYWS7kQY2fYrEvIo6C0QHTG02q khnbhGSsGhhH0hk6KEOVJA7QyCJawZo/H8HB+DK7XECpYi8elC4KWWHzdhJoLk80T6 k6n3yR57Ezm420usiThIMT2fn0n+EuAnrG0tm69k3En+xpEtbBxuMQMsPeRVFWq9as HeB02bJmZTTNw== Date: Thu, 3 Aug 2023 20:15:10 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Al Viro , 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 07/12] fs: stop using get_super in fs_mark_dead Message-ID: <20230803-umringt-aufprallen-e3adc44d2c75@brauner> References: <20230802154131.2221419-1-hch@lst.de> <20230802154131.2221419-8-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230802154131.2221419-8-hch@lst.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Aug 02, 2023 at 05:41:26PM +0200, Christoph Hellwig wrote: > fs_mark_dead currently uses get_super to find the superblock for the > block device that is going away. This means it is limited to the > main device stored in sb->s_dev, leading to a lot of code duplication > for file systems that can use multiple block devices. > > Now that the holder for all block devices used by file systems is set > to the super_block, we can instead look at that holder and then check > if the file system is born and active, so do that instead. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Reviewed-by: Christian Brauner