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 B37EAC433EF for ; Thu, 7 Jul 2022 14:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235660AbiGGOgF (ORCPT ); Thu, 7 Jul 2022 10:36:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235440AbiGGOgE (ORCPT ); Thu, 7 Jul 2022 10:36:04 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E66C30F60 for ; Thu, 7 Jul 2022 07:36:03 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-118-63.bstnma.fios.verizon.net [173.48.118.63]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 267EZx2e003602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Jul 2022 10:36:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1657204560; bh=SAOIFq3O6CqbjKPTbKIk+DMwt2BSx/hEhKrPuLWu3nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kmjuCB2hdJHygiYWq6YJD6aT/XwsPFoVRQoORvYNU0rckcHQqPv1p3aofb8NnRt2o ZI71kI+YvAZt7N6HVfNfZHSri4WDUEgwkEyEQUG6fQkZKr/8j86S19aoTjFsxR4Em9 PkHElycKHgEiDZAi+pcsOzBbCuo5GA2X8RQ8+bf/bAqE8aq1rwT1w+UhK7z2HPLfws KE9JtXQOcid3KGAYEKQYNoIWGy/j78vAFGGWnLXzQf47tDB8e2dtkNdsJChZH3JIF2 fzT3AoT232nYjW7x6eEVBbFZMCIAtRcw3EYWT6FHQZxMOak4KrEk4wPUYOMD9mSiiq wRDjaSenF+zpQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 7D79715C433D; Thu, 7 Jul 2022 10:35:59 -0400 (EDT) Date: Thu, 7 Jul 2022 10:35:59 -0400 From: "Theodore Ts'o" To: Andreas Dilger Cc: Ext4 Developers List Subject: Re: [PATCH 2/2] ext4: update the s_overhead_clusters in the backup sb's when resizing Message-ID: References: <20220629040026.112371-1-tytso@mit.edu> <20220629040026.112371-2-tytso@mit.edu> <68DC6315-7940-48F8-99D9-D26599819EE3@dilger.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68DC6315-7940-48F8-99D9-D26599819EE3@dilger.ca> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jul 04, 2022 at 02:50:47PM -0600, Andreas Dilger wrote: > > -void ext4_resize_end(struct super_block *sb) > > +int ext4_resize_end(struct super_block *sb, bool update_backups) > > { > > clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); > > smp_mb__after_atomic(); > > + if (update_backups) > > + return ext4_update_overhead(sb, true); > > + else > > + return 0; > > (style) no need for "else" after return. Good point, I'll make that adjustment. - Ted