Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp166838pxv; Wed, 30 Jun 2021 17:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfkr2wWGBBn79cjjmWo06Ble5+LDPNNC5FKsW1Usubr1FqsvFL0KKHiwKjBYVjjeTSafkv X-Received: by 2002:a05:6402:144e:: with SMTP id d14mr49285914edx.339.1625100548584; Wed, 30 Jun 2021 17:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625100548; cv=none; d=google.com; s=arc-20160816; b=iGywvHLt0e8sDwvZcfxsuzW0O1DeZVZxxMSqpyRaxba9pXYRSm4XxmZpaSwLyX6O7+ m1ndTxHGRzHDWWtuEvgLUumOSpkmpyocyzXfFMQO8Tnrtadd8RrLQWSKPMJLgfIiUz4Q +doGuVyXW5/Mv1AAKmXr+DuryrMQAw9jtn7bWFgcVt6pjhgFS0xl8Z4KRHKFCbOjjISG y3E3Fe/8/cu8agpxQ/klPdu52GMW5B0wGBrtZOWHkCHNFGbBy5qidC8b27yOjmWZ4r9l 2iKG7/LQAbtOvNC9Rocg3CM4+8z4SGtu1+vi3eqeOfI1uJ1pI+nQp5VOoWae50zW52Io c20g== 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; bh=/1p5GON4qdMQxgVbdBUefDYTk5IyALXbSW9QBrJieDo=; b=qNvH6GxTsRUAuYOkpXwrRpsd3Wzf5LSdJpNWqrj4zkqgomWJ2HgeALicVZGPcvndhr K+y1fT2O/rJYWu2YLo5ggDA13VG+EjLxbAy4WHnIYsaBGgrhhhIFdLOh/zRJetScjcDS qHjGmrXRyy9Su/wrMGjisEKOnC2UD2JgNpjYvxQqC71+rUDmLe8S4zeKz80U5m3FJW8W oh1CVK9fGUeIU3bbjDw9odDKgPM/5MYBon8lxVhelV9hrHkobEwtKh5cqidiilk9SeGp oSEus7tt9XxGsJh8fOzviNwsw5sp2ks2Ct87EAXihU9OS7Z3cC/xCg7dzLzpdplO3QL3 iCtA== ARC-Authentication-Results: i=1; mx.google.com; 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 bq25si21045458edb.600.2021.06.30.17.48.35; Wed, 30 Jun 2021 17:49:08 -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; 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 S238139AbhGAAus (ORCPT + 99 others); Wed, 30 Jun 2021 20:50:48 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:39744 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236734AbhGAAus (ORCPT ); Wed, 30 Jun 2021 20:50:48 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1610m5Do030908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Jun 2021 20:48:05 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id DB01315C3C8E; Wed, 30 Jun 2021 20:48:04 -0400 (EDT) Date: Wed, 30 Jun 2021 20:48:04 -0400 From: "Theodore Ts'o" To: Josh Triplett 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 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. - Ted