From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from antelope.elm.relay.mailchannels.net (antelope.elm.relay.mailchannels.net [23.83.212.4]) (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 DAE841514C8 for ; Thu, 15 Aug 2024 20:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=23.83.212.4 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723754973; cv=pass; b=KgbKZ6OCJGbYaaRpBDN6x7otwgSnxWmgTI5KLr/Mp8YNHk40SAB+aECgn1Vrwo73n5jUQ7AdwFUdInWzOFlXGX8hFf33zd1jOx+iNCy+Um1UEzK70r6E/zLakFzt1aSRmARNMmL0/zjLGPu8CnROa2rbaP9tOm11y6ZeXdJNmCU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723754973; c=relaxed/simple; bh=m6zxJ9SLJGX4U6MFrwsV7T5jh515p+NkZxO+ZKtlh1w=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=T1PTnXr2vCOE8Ff6mAybJzSeyOFXb/JcI+pGxewGqBhMn9wjRgfV9x9pZd7zdJCHhM7gB/i0AXBzKb0Jl9fXpFfmBRiutxWW7DYowdZFVyweUieCZL6c88fPHNtPP7GaugjcWbqjKPvVWPNpHfvfjbF/gr1xk748T8EUZ5BmH54= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=templeofstupid.com; spf=pass smtp.mailfrom=templeofstupid.com; dkim=pass (2048-bit key) header.d=templeofstupid.com header.i=@templeofstupid.com header.b=H6nOodEa; arc=pass smtp.client-ip=23.83.212.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=templeofstupid.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=templeofstupid.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=templeofstupid.com header.i=@templeofstupid.com header.b="H6nOodEa" X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8FBD0C5C13 for ; Thu, 15 Aug 2024 19:29:59 +0000 (UTC) Received: from pdx1-sub0-mail-a210.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 38A7DC5CCA for ; Thu, 15 Aug 2024 19:29:59 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1723750199; a=rsa-sha256; cv=none; b=i6iqZXyE+Q4WIuRJ4An2nkVJKjrUbNLaTbxdz6Wfjpv/2UE9hGsASjjsQB32g4RK3sY2Qu tVCNYK7VkUoRvBFKLGNCKr9rdXFfeJP/kP9xxpAGJvyZE4wGuYkRrf+Enniq1Cj6usKldz SwK2AG4LQJYa/L4ymum+GAsUVUEWwnrzboemd/SxRquxWgA5Nswjs8dlgUG9Vo1hkfDcKA Pc01kkxNTIHsWtJRYacQIhN6o5mKQBxNR6w4nIxcr+jSSWCzZpxGl55Qay/8V5VL+Or5QI ii3CDgokwLFLxugRJKEWcth697gFLfX5V2+ebKdux2bok99U+VvozbfDDzSqWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1723750199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=2AbtyVmd3LsaV2zE1A0WvvXs3AQU/DKRvNe+kpgzUPg=; b=qZxIly4COg+Ih5A29hMibyyuZuoL8eLNlMn4q2ygwFdEULayB+ZKoab4mDAetIo1Uf8F9F wYzM9zEOsdmigGrxu3J2ahuzmsakzXYOhuIMmcHGW8g5g+JUDt5tsGtrWX1l4eXJKUz5TV XQv6D8UWdxwpw6GNLQYToMLCk8llYCh9hfj/PwJkGJq7jnuQPurtDodnt0oJNnNuOxGyfJ RLp609gxiSpOu4NtXEsBDm/NkZ8GZX5emhXPVyhn8TpktSoFA13CHZp4dfL/0jGPo3+tjA vn3CAEXPCuWTpAKueIv285+4lNXLlrWDbvcrjoBhwd7Y4nFdgochpZ2beKM/cg== ARC-Authentication-Results: i=1; rspamd-c4b59d8dc-qx5c4; auth=pass smtp.auth=dreamhost smtp.mailfrom=kjlx@templeofstupid.com X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|kjlx@templeofstupid.com X-MailChannels-Auth-Id: dreamhost X-Quick-Stupid: 7baef8b8361076cb_1723750199441_3719079159 X-MC-Loop-Signature: 1723750199441:3135726089 X-MC-Ingress-Time: 1723750199440 Received: from pdx1-sub0-mail-a210.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.127.52.227 (trex/7.0.2); Thu, 15 Aug 2024 19:29:59 +0000 Received: from kmjvbox.templeofstupid.com (c-73-70-109-47.hsd1.ca.comcast.net [73.70.109.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kjlx@templeofstupid.com) by pdx1-sub0-mail-a210.dreamhost.com (Postfix) with ESMTPSA id 4WlFZH0L50zC6 for ; Thu, 15 Aug 2024 12:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=templeofstupid.com; s=dreamhost; t=1723750199; bh=2AbtyVmd3LsaV2zE1A0WvvXs3AQU/DKRvNe+kpgzUPg=; h=Date:From:To:Cc:Subject:Content-Type; b=H6nOodEao8271sTvBGN75dTYKEE800EOsiy2nbjwcEEudGlj4IZRT13Bnowd9yNtH 7RFmDQcVa9T9FnYEp8IH6codpPSCbWmM0w6acqYZ8g/aooRZjliKpposwKOMSzIiMs FnvFrYvZq9hc0OxKA+6ZppkDd3uWuG8cEBGcjf/YrKJkmyMRse83WIJKfWkZ667q/Y NQlUT6vGH5eYjEAZfvQEroVa98m7B1lrJ7Q7ftxl11un1+Fkk95vjUwdZNDx4vOAGu +VjirijysR/PCMruwLz7n0EO1urWU7gzbLDhqlqcV5YbqlU3A6ExUmls/+oXrtzpxi F8PfRbLuHzXyw== Received: from johansen (uid 1000) (envelope-from kjlx@templeofstupid.com) id e0064 by kmjvbox.templeofstupid.com (DragonFly Mail Agent v0.12); Thu, 15 Aug 2024 12:29:58 -0700 Date: Thu, 15 Aug 2024 12:29:58 -0700 From: Krister Johansen To: Chandan Babu R , "Darrick J. Wong" , Dave Chinner Cc: Dave Chinner , Zorro Lang , linux-xfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCHSET] AGFL reservation changes Message-ID: Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This patchset contains changes to linux and to xfstests to address a reoccuring panic in xfs_bmap_extents_to_btree. The RFC was discussed here: https://lore.kernel.org/linux-xfs/cover.1718232004.git.kjlx@templeofstupid.com/T/#t The kernel changes modify how the AGFL reservation is calculated when a filesystem is mounted. This is also pushed into the in-core per-AG structures to ensure that they do not consume the additional space reserved by this change. Additionally, this includes a pair of xfstest patches. The first introduces a test that triggers the problem we're trying to fix, as xfs/608. The second is a modification to xfs/306, which started failing because the increased space that is reserved by these changes is above the global reserve limit that this test intentionally lowers. The second patch increases this limit by one block. If this seems wrong, I'm happy to debug further. The change was based upon the assumption that artifically lowered global reservation limits had to be cognizant of the per-AG limits. -K