From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0F594963D4 for ; Tue, 14 Jul 2026 15:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784044524; cv=none; b=XErjEqPZc7Bff2cHc0dPku7POtvqQswZ3ptbAnOu8z2mBM+G9rL4Z8mHLNLWRPGBFpHNQ4jlQyBZD0Mg38AlNRwM2iELE4AguzjntxgtuSoGZMvOrPF97zm+GNhOiLv13g6ine8rcstWE/mbVIDLnqtUYqzpHB7cg/SGHReN38o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784044524; c=relaxed/simple; bh=8UKRYuRmEijNvnElj+iyesitik58ak4Ei+/4KS+LPkM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=B8+DHv2ihCUZAeziCDErvZagNDRFujCTUV7B6HwqYZQ3kPSYmpcbHU4v5pUF4R3KZQmigFwPr6NDaR25XtmAC4kkmv/iRyiVwW/eZ3D2t6S+9GWtq71wg2cTi+r3iJ6eZIKwaCVnZlChtkrM83qNUZ6GAkhfj2RxXvUEuGZBXY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f4l9wUS+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="f4l9wUS+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31D6B1F00A3E; Tue, 14 Jul 2026 15:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784044522; bh=27tjOyV4Gv4WaTa01VvkfhvitS1jV2H7EM5ELORQd6E=; h=Subject:To:Cc:From:Date; b=f4l9wUS+P2s/xhqkOSHbVYvhAF9W+MW0QL6q7oL+RpxxFjg8wUJPFx3VMLZp9U3nZ KaGUEzSPTP+gnHxjkmyE4IH4c0VZqpPfqOaBpnv4h8Lcpo9fHO9SaayTDkxgJYUzTH e7Z5foXsxGtEnSENwyODNDCGYZWa2KW6n4OyY6pw= Subject: FAILED: patch "[PATCH] xfs: add newly added RTGs to the free pool in growfs" failed to apply to 7.1-stable tree To: hch@lst.de,cem@kernel.org,djwong@kernel.org,dlemoal@kernel.org Cc: From: Date: Tue, 14 Jul 2026 17:55:16 +0200 Message-ID: <2026071416-friend-sanctuary-1a9b@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 7.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y git checkout FETCH_HEAD git cherry-pick -x ae3692c7f440c1ff577aae1a51202415ec4a794b # git commit -s git send-email --to '' --in-reply-to '2026071416-friend-sanctuary-1a9b@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ae3692c7f440c1ff577aae1a51202415ec4a794b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 10 Jun 2026 07:07:20 +0200 Subject: [PATCH] xfs: add newly added RTGs to the free pool in growfs When growing a zoned RT section, the newly added RTGs also need to be tagged as free in the radix tree and add to the nr_free_zones counters. Call xfs_add_free_zone to do that, otherwise using up the newly added space will wait for free zones forever. Fixes: 01b71e64bb87 ("xfs: support growfs on zoned file systems") Cc: stable@vger.kernel.org # v6.15 Reviewed-by: Damien Le Moal Reviewed-by: "Darrick J. Wong" Signed-off-by: Christoph Hellwig Signed-off-by: Carlos Maiolino diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 153f3c378f9f..debbcefdf07f 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -933,6 +933,14 @@ xfs_growfs_rt_zoned( mp->m_features |= XFS_FEAT_REALTIME; xfs_rtrmapbt_compute_maxlevels(mp); xfs_rtrefcountbt_compute_maxlevels(mp); + + /* + * Finally add the newly added zone to the freelist and add the space + * to the available counter. The order is important here: only add + * the available space after the zones, as available space guarantees + * that zones to back it are available. + */ + xfs_zone_mark_free(rtg); xfs_zoned_add_available(mp, freed_rtx); out_free: kfree(nmp);