Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp885058rwd; Thu, 25 May 2023 05:30:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56Q/1BuJL8Kl42POaIb3nn26Vb3v9QrGNzDF0qH/5MDOPXas49/QD6FlK9I4yshbgtCzbW X-Received: by 2002:a17:903:645:b0:1a9:433e:41e7 with SMTP id kh5-20020a170903064500b001a9433e41e7mr1246192plb.43.1685017812418; Thu, 25 May 2023 05:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685017812; cv=none; d=google.com; s=arc-20160816; b=FWwsiCDlUsVgQF74Q5NTnFV72pPiPU238g0JXNzISDsTn3YwOKPVbHjJ/7KAttjO0Z PC8sxaSTX03ORnICkIctN++3dZ/aJBE+4JddRFnfaebzorkxzIS+JnalApVetSEIwy2T T+2sbH7JOY+HMDlVnfNeM72aqCBAe2RvachQZVRe3pmYj9VqbY9MvSAUSHn/EwooGqCk M85JZbmRm+IFzQvMaNKQIpPCQuTS44zR8oBumOcZkf6Aif1/1nlvmF9WOU+yByrc9/uf jkVsD6MP1PdZ++USZi5sGvM0lV+Yoz879Z1s6zFc/gCo7ZkjLW+8JlsXLjMR8AtiDyyi VDuw== 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=nY73Ob7i9/yszN4HxG34KoA67z+MTS83xA9FlnqxOvk=; b=Dehqcjhca97BSuiq2IDC9fkVzDfk4gE7jzLW40JjSTl1yrE4wtlJjZvItMlFNi46Dt 7XKcuA0kIKgrcdW79HH02OQE0BtR6ZlwPNI1lR1Pe7ppnePkzYLTuRie9VhRzocdyqkc qHVHrSRKwmVITb4PqzyMqt8Lo158HGUgMLso+bHy+FLCWfgIWZGdRYk3y8Ih5KjzqnfH Ne/ujOJTnHz8KWsJSkk8izRSsHWJ00DgjYuBwveXJ2dE6eeZaIw5sk/Xh4hcFy5kE2c6 fyJpS5cmp7CsqZ5V0UnE0VkT8ZrbJQWLkLuBaPhEZ/qiMJZzxKUe5tWbztn2MtAO1CHA 2RTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1VUxox0N; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb1-20020a170903258100b001afb4aa60d5si1305540plb.545.2023.05.25.05.29.59; Thu, 25 May 2023 05:30:12 -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=@suse.cz header.s=susede2_rsa header.b=1VUxox0N; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241048AbjEYMT3 (ORCPT + 99 others); Thu, 25 May 2023 08:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbjEYMT0 (ORCPT ); Thu, 25 May 2023 08:19:26 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C04B7A9; Thu, 25 May 2023 05:19:25 -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-out2.suse.de (Postfix) with ESMTPS id 6DFE11FE56; Thu, 25 May 2023 12:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1685017164; 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=nY73Ob7i9/yszN4HxG34KoA67z+MTS83xA9FlnqxOvk=; b=1VUxox0NDiJaPMB2SjrAkEBNzxU3Qk/uwOorE1RBIN9XCysvFJiV//9Q+i6uaI3DPufqYD zUnOqRRd85+c32qiYXm5F6UHzSykAAxCv3jAv1MX9J7dKjhhwmFRcETc6xJpiXlp56CpvD Lo0L4MMCrwh4Ob18X74fg4r5Oe5oH5k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1685017164; 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=nY73Ob7i9/yszN4HxG34KoA67z+MTS83xA9FlnqxOvk=; b=zupC0LSZ4V0QDdBF3Eoluoogja4JzNZ9eQbfmfXh+x7Bh4GCLDR6FOlRfCrZwVVSLEVHFP SjGTVeXzpXVPuUDw== 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 5D738134B2; Thu, 25 May 2023 12:19:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id asXNFkxSb2TTMAAAMHmgww (envelope-from ); Thu, 25 May 2023 12:19:24 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id CD528A075C; Thu, 25 May 2023 14:19:23 +0200 (CEST) Date: Thu, 25 May 2023 14:19:23 +0200 From: Jan Kara To: Luis Chamberlain Cc: hch@infradead.org, djwong@kernel.org, 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: <20230525121923.ckj7hkaqonuyq447@quack3> 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: <20230508011717.4034511-3-mcgrof@kernel.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Sun 07-05-23 18:17:13, 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. > > Reviewed-by: Jan Kara > Signed-off-by: Luis Chamberlain Just noticed one nit... > diff --git a/fs/super.c b/fs/super.c > index 0e9d48846684..46c6475fc765 100644 > --- a/fs/super.c > +++ b/fs/super.c > @@ -905,7 +905,7 @@ int reconfigure_super(struct fs_context *fc) > > if (fc->sb_flags_mask & ~MS_RMT_MASK) > return -EINVAL; > - if (sb->s_writers.frozen != SB_UNFROZEN) > + if (!(sb_is_unfrozen(sb))) ^ unneeded parenthesis here Honza -- Jan Kara SUSE Labs, CR