Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp224976pxv; Wed, 30 Jun 2021 19:18:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUSnXkH86QWoUY6hnAXiADdFba3ZmEunN/xuXKuLtXwyev9oA9m43L7onOMyFypAwatPGd X-Received: by 2002:a02:5d0a:: with SMTP id w10mr11360542jaa.82.1625105910179; Wed, 30 Jun 2021 19:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625105910; cv=none; d=google.com; s=arc-20160816; b=0Ire79VpCDASd8mRIOLMzbatLEtpmUaXNoDFxnCOXaT+GpztV8bsTIDf+5KVcCRVIT 413anQB9J5sDhhazcKwtxELicCtNI/BCR0GYmwX71tXDOIq8vt2+dM29qaG3gVhtV9jX JUxWlB6ggS6Mx6Tw8DzZH2ljiEPdg8rh5gtPnAcBzn2hHUyFGjr/apaMRzpn9apVeDW+ JSOEQWk7bxsxDFdT7SHshWXc2tmRSNNjg0MIezn7mbZPIGIvZ2ChDX2lrKoAXAw2xIQl lfekVJSJ+/dHegO0IWykiII58TO4aU07Cerw52yBUMd5jaxtkfAjK0m6dJGipOkNo4cX TyXQ== 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=5VVELhPFxTBkOfKL82zuBqsYKxXKbip1GBt06pE8ZeE=; b=vDmpUREtc8m9C5BgGGB5oDFTVMGmfXwpQAFr9Gj+jG/NtgVVhkW8A/WxVvBjBshoxk BQMjFJ+06mb532xzpOrxPotdsHvB9M9wpBpJrS9/ki49KoSIgzCZnZrmdZmsaxUEZtMF E8+OWjFZlv3JcwSUgz7mIXeUnJtBiZupwFXuMl/Zwl7I2POTSdoMPiz7FWV6KYyYVwWj 4QFgIN6OS1kQ+KfvFbEGGmrGlkLA+pXSwZhd2avDOswsL9WYiYWI9eFSPKMk8NKYamxv /pzR/K9Ebg8iBmPn37dSjAGy7nZ2/ASGC8tWx6AAFPFBGqIKOICC25t0NbHoZ2lEnveu opaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joshtriplett.org header.s=fm1 header.b=HvE48WPU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dHngx8H8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w125si24827909jaa.80.2021.06.30.19.18.07; Wed, 30 Jun 2021 19:18:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@joshtriplett.org header.s=fm1 header.b=HvE48WPU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dHngx8H8; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238588AbhGACUX (ORCPT + 99 others); Wed, 30 Jun 2021 22:20:23 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:43537 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234257AbhGACUX (ORCPT ); Wed, 30 Jun 2021 22:20:23 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id DAB34580B8B; Wed, 30 Jun 2021 22:17:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 30 Jun 2021 22:17:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=fm1; bh=5VV ELhPFxTBkOfKL82zuBqsYKxXKbip1GBt06pE8ZeE=; b=HvE48WPUd5kdNQQ834R bPKTK51UNaJJn00uerLB9VdcEEsQN8EYAeQR7C5dsyzZ5b/IbK5nJ0PrPv3GcGyp UG58uWm8MeeiBO/Ls5XW2vL/KMLIacZJm5ZbMq73ryJ0eXWDwl042Te2TpKjtrw+ iLKf+Q0rr6aRugR0xdNhcNniYCezItSxmpLU/6ZUBqr51NFNMFwEY+X/lGG90j2Q FTVqLlhxcnaO3ogG+Y9SZ1yiAVwdqmtNgd6nhOtj9Q+FaaHR+GszGExPNkml7SUT 4rsPBssVXIv6myrA+ZbeMiXJPOUqxf1pbJfRXL8CqlI4AJA/Ikeh3AFcN5cogjl/ t3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=5VVELh PFxTBkOfKL82zuBqsYKxXKbip1GBt06pE8ZeE=; b=dHngx8H82rDmiMpc0U03jF h4HtTtAP6unHRJQSmvb3tFwZts5GcJZ/bHqFKzeGnJHgArW1TFKnul/R4N8Bfj5b L2jqunqMh4NZQp4oKjEAklzy5JRtRHNzMOvxRbZ5hp2kExgjad7e7m2f9UduAENT ArsxBg9D1jw65uyXvhCKSypPA8wCPzaN0tA+RBlvyj8Zby7xzyQUT7LB3n3q+fb3 JlbVw4GNJVH7qDmAmn6bLQmVRDK8eShddrgEesJTZSJ63K4wH2Dl7hZNCW5K8Wap QxUzsKtlRJXf9+7rpdjTQdlSR/z6yk4vioz6QPqM3w8KGyMH2AhD/rCysBpF4WAA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeihedgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheplfhoshhhucfvrhhiphhlvghtthcuoehjohhshhesjhhoshhh thhrihhplhgvthhtrdhorhhgqeenucggtffrrghtthgvrhhnpeegtdfgfeeghfevgeelgf efieegudeuheekkedtueeutefgheffveegueeiteehteenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhshhesjhhoshhhthhrihhplhgvth htrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Jun 2021 22:17:51 -0400 (EDT) Date: Wed, 30 Jun 2021 19:17:50 -0700 From: Josh Triplett To: Theodore Ts'o Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Dilger Subject: Re: [PATCH 1/2] fs: ext4: Consolidate checks for resize of bigalloc into ext4_resize_begin Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 30, 2021 at 08:48:04PM -0400, Theodore Ts'o wrote: > On Thu, Jun 24, 2021 at 10:23:15AM -0400, Theodore Ts'o wrote: > > On Mon, Jun 07, 2021 at 12:15:08PM -0700, Josh Triplett wrote: > > > Two different places checked for attempts to resize a filesystem with > > > the bigalloc feature. Move the check into ext4_resize_begin, which both > > > places already call. > > > > > > Signed-off-by: Josh Triplett > > > > Applied, thanks. > > I'm going to have to revert this change, since it breaks online > resizing for bigalloc file system. The issue is that > ext4_resize_begin() is called from *three* places: for > EXT4_IOC_GROUP_ADD, EXT4_IOC_GROUP_EXTEND, and EXT4_IOC_RESIZE_FS. > The first two ioctls are used for the "old-style" online resize, and > bigalloc is not supported for those two ioctls. However, it *is* > supposed to work for EXT4_IOC_RESIZE_FS. > > Unfortunately, this just caused some tests to be skipped (assuming > that this was an old kernel that didn't support this feature) and I > didn't notice it right away. Ah, I see. I didn't realize that resizing bigalloc was possible with EXT4_IOC_RESIZE_FS; I'd assumed (incorrectly) from the error message that it wasn't. This patch was *purely* a side story of the second patch. I'd discovered that the kernel couldn't successfully resize a filesystem with sparse_super2, and wanted to catch that in the kernel and return a clear error, rather than partially resizing the filesystem. In the course of making that change, I noticed the two copies of the error for the bigalloc case and tried to consolidate them. Sorry to have missed the third case here, and no problems with the revert. I'm hoping that the second patch can be kept as-is, assuming there's no support for resizing sparse_super2 by any code path? - Josh Triplett