From mboxrd@z Thu Jan 1 00:00:00 1970 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 8A61CC433F5 for ; Wed, 11 May 2022 14:54:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245166AbiEKOyU (ORCPT ); Wed, 11 May 2022 10:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245135AbiEKOyT (ORCPT ); Wed, 11 May 2022 10:54:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768432013B0; Wed, 11 May 2022 07:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=lY5s4swBg7qFq+qfj+bTaun5I4OB95sIbgcujXJp3Do=; b=CsqWIYBIQLAIUxJyn/xWGZA8eg HuXtCkWYNU3FffXGdn2FgBsC1nKJcM8xIDu3fQ4LZw6ZvnA20X4dqBHtufRXTnwttYrOkqRfex88v wKmAqbJjGM1NJmaUiQFdZEIwp5ezZngDhjKQvgGtb4Ezb5ct1Qd8bMal70JPYECrJbMF1fFQP66kO CxbS818lbwsP5L1jdDHgTiqo9sXpYYa4NR4WSGdnXKCImJmZVl6g0XVbIqyWkdWcDErpZtVQ+6FzW JsYSTfLcr6KSrVxmCWKhoCRGN/uCgeRw1w0wyAj+lS0DKl4yvf4j66a443+aNjaYo/Urz9L/PMgkL d80VtVog==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nonjC-007KxH-7q; Wed, 11 May 2022 14:54:14 +0000 Date: Wed, 11 May 2022 07:54:14 -0700 From: Christoph Hellwig To: Daniil Lunev Cc: linux-fsdevel@vger.kernel.org, fuse-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Alexander Viro Subject: Re: [PATCH 1/2] fs/super: Add a flag to mark super block defunc Message-ID: References: <20220511013057.245827-1-dlunev@chromium.org> <20220511113050.1.Ifc059f4eca1cce3e2cc79818467c94f65e3d8dde@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511113050.1.Ifc059f4eca1cce3e2cc79818467c94f65e3d8dde@changeid> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, May 11, 2022 at 11:30:56AM +1000, Daniil Lunev wrote: > File system can mark a block "defunc" in order to prevent matching > against it in a new mount. Why use a bool instead of using s_iflags? Also I suspect we should never reuse a force mounted superblock, but at least for block devices we should also not allow allocating a new one for that case but just refuse the mount.