Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp848419rwd; Thu, 8 Jun 2023 08:31:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yjLDafQH6i3ATNLd3k+QcdxvtJKTQ/oOTKY+KzM2T41qYbVPeHc+Yp5XBLMldWXGS8a45 X-Received: by 2002:a05:6a21:78a9:b0:10c:7676:73af with SMTP id bf41-20020a056a2178a900b0010c767673afmr4531857pzc.53.1686238270737; Thu, 08 Jun 2023 08:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686238270; cv=none; d=google.com; s=arc-20160816; b=o8B6JauPBVKUDLvxEK+5scX31rEzCyLLr5AW1z0k4rXwFZaYTG1DaFSdztdrP6wWuc qpnvUe47Zmud5d6//wUxLM7Z7CmjIl88rJb/OTJL9uXVBls5IVROxavC5lfcv7vMbTVM 1vvI8Mk56sKjdNz/xrN7pFIQOerUD8homSEfRDIK3lRglf+roTqof5DU6qntWgspySXA IddekGRzUJ2syFI5UjtEd0zZtIrQJxcGg7vkDHx6quG1UJCAxi1Cx1qubvQw0wdsc8NP MtyCTOe8yWCYeYdICc9UUR3q++2ylsdVYdHtB3EPwG2J4l7/5peKSx075C8xlR69JGR9 f0jw== 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=u5tPGEfw3FWYTYkWdMt+XtjEqAN7N07kMMcmj1q5IBE=; b=MJwgX2+EvL/S+RauLkyOtj6TSksfME2haYYV+zU3tebb1h/t6OlSsiGGO947kbAmoF hYLXFrrdMh9g57u7DuRvIrobV5toCD4VgIl97gFDQutmBMilLgdWteyNF5CyOYKEQlE1 JCNefusmnKZHGovBNeJntBkGlUGr0q/Ru+rLvQ8XDwcGKCokRhVuGAALy3ZBfXfLECDc 5d8brkhAz3irg7u9vof9HAXem7VXoJ1oo8MQx0nVlregGaHOYuER9LeEbdevxRNEHp72 4jTVFb4phDyCESxU0iMHF8PBxeLAAIiQmZR2z+auJ28Yi92Cb/whVNIVHDE9XZaw/i6Q XmKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f735D9hC; 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; 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 g23-20020aa796b7000000b006293f8330fcsi920561pfk.322.2023.06.08.08.30.58; Thu, 08 Jun 2023 08:31:10 -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=@kernel.org header.s=k20201202 header.b=f735D9hC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236429AbjFHPF0 (ORCPT + 99 others); Thu, 8 Jun 2023 11:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234352AbjFHPFZ (ORCPT ); Thu, 8 Jun 2023 11:05:25 -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 C81B52D59; Thu, 8 Jun 2023 08:05:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4FA9F64E59; Thu, 8 Jun 2023 15:05:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE35C433EF; Thu, 8 Jun 2023 15:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686236722; bh=Y/EIWGouVnlbKpC9XYTbmAdqBuIsdYRVusOwsLVQBYw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f735D9hCJ8h4t/Ej4s3fHyaVbj1J9OMDZMGWYjX0QHr2axT3FlkjlOpWwF1hHnU54 s1VFWP11DFwUGv621HfcPwcnnRfm+3kG4FzipGCP6tvtmrrcujAvOKsirmN5sEh94G q/YfFBjv/8IBXorg7dmTTz7jqIs0RAKRgWznx8bZ4ngtdHIJan0tcN1ZypA8A/iROD X7lVwXyDJX2kUF20EKbsVxSiycqL5w+2K1aXltZnpYOvGxt11XfsU0RRNwEYXB1FUP 9PBJgg17K4EGc/Bja2ZmOy9cdapnq55pqQNZ8Q9rdpgvypIePFXQCVggl5pLwPEasU aTSTVje1en/GA== Date: Thu, 8 Jun 2023 08:05:22 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Luis Chamberlain , sandeen@sandeen.net, song@kernel.org, rafael@kernel.org, gregkh@linuxfoundation.org, viro@zeniv.linux.org.uk, jack@suse.cz, jikos@kernel.org, bvanassche@acm.org, ebiederm@xmission.com, mchehab@kernel.org, keescook@chromium.org, p.raghav@samsung.com, da.gomez@samsung.com, linux-fsdevel@vger.kernel.org, kernel@tuxforce.de, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] fs: add frozen sb state helpers Message-ID: <20230608150522.GD72224@frogsfrogsfrogs> References: <20230508011717.4034511-1-mcgrof@kernel.org> <20230508011717.4034511-3-mcgrof@kernel.org> 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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-kernel@vger.kernel.org On Wed, Jun 07, 2023 at 10:05:46PM -0700, Christoph Hellwig wrote: > On Sun, May 07, 2023 at 06:17:13PM -0700, Luis Chamberlain wrote: > > Provide helpers so that we can check a superblock frozen state. > > This will make subsequent changes easier to read. This makes > > no functional changes. > > I'll look at the further changes, but having frozen/unfrozen helpers > that sound binary while we have 4 shades of gray seems rather confusing > to me. That was my first reaction too. Then it occurred to me that *some* people might still be clued into that subtlety if they happened to ask themselves why there are predicates for _is_frozen and _is_unfrozen. But in the end I think I decided that an enum isn't subtle like that at all and clearly forgot to reply with that. --D