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 X-Spam-Level: X-Spam-Status: No, score=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB9DC47083 for ; Mon, 24 May 2021 01:01:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3D32611CB for ; Mon, 24 May 2021 01:01:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbhEXBCz (ORCPT ); Sun, 23 May 2021 21:02:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:42618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232114AbhEXBCz (ORCPT ); Sun, 23 May 2021 21:02:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8034611CC; Mon, 24 May 2021 01:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621818088; bh=JYRU7v25IksAjHCguhZi7wgXONii67/Tnl2v0fS6kDY=; h=Subject:From:To:Cc:Date:From; b=Fc2MrvJ0yKtS4XtyvDPhcW/HnzhxZyvmuiEC5q5eQ7XNKXnJM7/xJQkzSbtT9MGCt vscBpqyTyJXfTDAsRdr5thoFw7KjU/oD2d1rc+p6He1+gZO3nnBExPs9QqNo93j9CW QaDH1H7s+8M9z/6jVKnFHz+W4yVy6XPUIJzFqmABRGBAeouRDByACrJDYZ0RyoOXwE zduZjKHtf03cTlAYvh5cG03NzzE8y0uQ5jZz+bnhYfQ0x+65JUJ88ACM25o7CFsNb6 yb8AR3MebGq6jABRq7gby3HUb+G10j04d3zoNZXH0Ihc4ayPKHj/Q0iT+yww+Ioi9q ciGEeiYu2Mk/A== Subject: [PATCHSET 0/1] xfs: fixes for online shrink From: "Darrick J. Wong" To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, hsiangkao@aol.com, david@fromorbit.com Date: Sun, 23 May 2021 18:01:27 -0700 Message-ID: <162181808760.203030.18032062235913134439.stgit@locust> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Hi all, This is a single fix to the per-AG reservation code to make it so that shrink can abort successfully if shrinking would leave too little space in the AG to handle metadata btree expansion. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=shrink-fixes-5.13 --- fs/xfs/libxfs/xfs_ag_resv.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)