Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp432193rdh; Wed, 14 Feb 2024 00:53:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWr/2vBs9s71ObAeSospQRe3TryHRxqkkcdFYaI7GUawj5tGDmKfOMQy3s4g7lf1l4x1EzYvdHo/5oDJDxEH91dQJc8QcfM6hOTNdI5gg== X-Google-Smtp-Source: AGHT+IE4rU3zrRd9/+ytxpajFkpq+5UNCLcNDdEaBd9tn8iYHyUl5nmyALO7EYbFL4DPE8FNZhPm X-Received: by 2002:a19:8c49:0:b0:511:a80f:bac6 with SMTP id i9-20020a198c49000000b00511a80fbac6mr748099lfj.52.1707900798638; Wed, 14 Feb 2024 00:53:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707900798; cv=pass; d=google.com; s=arc-20160816; b=Iet6MF3NHmrzav5D1j+CbagolJRiJbKA0hHc9iHw5XlZr4ECIYt/ySsR4oWIT4C52H eqEn9Ry0KoYBiEqJ0X4uz0+/+fcQvlRbyk7hipbj4iz6WNtypMIdgPgE8B0IWGBDL1qC OF83piAztea8V1OwDgDNL3zdrxBbvwpQoDLE8rHRV1ZeONgqICeEG3EzEwrSwe4vh5r8 NlTQ6BRDWs9A4ZqV4ZdHMGla1v8toYai1e2uYJKGD0SOg7+s1sb+z7HaxKE8kWj2vmHR abrjF5+lTfM6TSgBYj8fXD3pyPSVHY9mp3uRI8a0b4ZRNKKLSKPs/kvUjvA4q8/XZllr PBDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=UOx70PD5yft0dm9BWWOGLZJRxlYjfx2O3KH0qlJiMP4=; fh=IXqkzJAol1nZUlLa0VUo0KodDK1v7vXNlwtUSKJkKgA=; b=V5FEBinevho6nFhlBhJp65gmzP2t2EPZXGu9HdiVgcd/VDvuKsDCaADBHppFEUR77z Ufd2PSv4ttWaiBpyur4C1EkCxSV85B7J+1KDLrnKybriIlTtuehB7VbjhQtSslZOW4l1 U6Jvkl73cTMN+QENEd0nEuPs350jpDngVQPo6XYXgrMTC4E8hKk8wW//7+uQ5lyvHjIR QzU7BQCEU8My66N5Z/iwPPpwGg6muPmw2TzziBAEummzoJvOnWudUXWNw0ct62aDjvbQ aWtRs2yIoj1NAAIU/m/cZP11+ONr1nRxHifo/C58906rQ24cOVlpWZyR4w11HSze219O b+2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=gsmEeDvU; dkim=pass header.i=@suse.com header.s=susede1 header.b=gsmEeDvU; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-64890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com X-Forwarded-Encrypted: i=2; AJvYcCV1LxvN69B4vPOhu4EhRJQDklgEy0QiWqKwc7dybDG9wlnKr6Y1Jr9HuuXu6e1IX3/Ew0q5hfGKCMy5yI+uqcWZOGTrYbt0wmLi7VOJfw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h3-20020a056402280300b005638459a1ddsi228335ede.526.2024.02.14.00.53.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 00:53:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=gsmEeDvU; dkim=pass header.i=@suse.com header.s=susede1 header.b=gsmEeDvU; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-64890-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 621231F2A71C for ; Wed, 14 Feb 2024 08:53:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BEF3C8CE; Wed, 14 Feb 2024 08:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="gsmEeDvU"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="gsmEeDvU" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9311779DC; Wed, 14 Feb 2024 08:52:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707900777; cv=none; b=Dgi9XAcrJ7PnU5D0Z2uodEecAsaHRC5Pk2dcJK2ti006HFZlQyUFLLly3xOOtYH8o3WrXubax+hrzRrV3RY08ZMgrfGH7wx8SDy1+b/6vBxdsczDKq4D/e3J7u6wZd3ur1SFZYAvFJ4f4s8m2CkqMGf6zdFDDwSpwTfdYApRFs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707900777; c=relaxed/simple; bh=ZPwTvzWqlx9OchF3dRxEloHfDxUOdPKkuSspueE//3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n69/XG5wGAQYsHAuaqzVU0XB7M/U+ji/d4sNPBfOwE+YyvgPlFfRkWd4e4vBagl3ynLVNsRxZSmy5pVKLweG4ITpXHdxKFeRl3tvW65i3B6D44FIaMfb3ageFdJsd0cqu5gGIEFsS/SOyACLgKFhfG4fmLIDMlmdzfEbvXvMQqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=gsmEeDvU; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=gsmEeDvU; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9824A21CA8; Wed, 14 Feb 2024 08:52:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1707900773; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UOx70PD5yft0dm9BWWOGLZJRxlYjfx2O3KH0qlJiMP4=; b=gsmEeDvUy129QcVQX50fOQYWCdIkI3/pHGH1RR9+ug0sV2n1Pd2If2C03PGh1/8u1YAAVT M2thyEFwqysHX4FXCyYiwsRiyHgcBlyJBIGwUgx9BntIXLTz1pI62s6BA7GnZq79OKvYli 2aptoB8s2GJ5d+TkR5Mbn4x7TPA6PBo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1707900773; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UOx70PD5yft0dm9BWWOGLZJRxlYjfx2O3KH0qlJiMP4=; b=gsmEeDvUy129QcVQX50fOQYWCdIkI3/pHGH1RR9+ug0sV2n1Pd2If2C03PGh1/8u1YAAVT M2thyEFwqysHX4FXCyYiwsRiyHgcBlyJBIGwUgx9BntIXLTz1pI62s6BA7GnZq79OKvYli 2aptoB8s2GJ5d+TkR5Mbn4x7TPA6PBo= Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 90BD213A0B; Wed, 14 Feb 2024 08:52:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id JNhQI2V/zGUMPwAAn2gu4w (envelope-from ); Wed, 14 Feb 2024 08:52:53 +0000 From: David Sterba To: torvalds@linux-foundation.org Cc: David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Btrfs fixes for 6.8-rc5 Date: Wed, 14 Feb 2024 09:52:16 +0100 Message-ID: X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [1.90 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Level: * X-Spam-Score: 1.90 X-Spam-Flag: NO Hi, a few regular fixes and one fix for space reservation regression since 6.7 that users have been reporting. Please pull, thanks. - fix over-reservation of metadata chunks due to not keeping proper balance between global block reserve and delayed refs reserve; in practice this leaves behind empty metadata block groups, the workaround is to reclaim them by using the '-musage=1' balance filter - other space reservation fixes: - do not delete unused block group if it may be used soon - do not reserve space for checksums for NOCOW files - fix extent map assertion failure when writing out free space inode - reject encoded write if inode has nodatasum flag set - fix chunk map leak when loading block group zone info ---------------------------------------------------------------- The following changes since commit e03ee2fe873eb68c1f9ba5112fee70303ebf9dfb: btrfs: do not ASSERT() if the newly created subvolume already got read (2024-01-31 08:42:53 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.8-rc4-tag for you to fetch changes up to 2f6397e448e689adf57e6788c90f913abd7e1af8: btrfs: don't refill whole delayed refs block reserve when starting transaction (2024-02-13 18:39:09 +0100) ---------------------------------------------------------------- Filipe Manana (7): btrfs: add and use helper to check if block group is used btrfs: do not delete unused block group if it may be used soon btrfs: add new unused block groups to the list of unused block groups btrfs: don't reserve space for checksums when writing to nocow files btrfs: reject encoded write if inode has nodatasum flag set btrfs: zoned: fix chunk map leak when loading block group zone info btrfs: don't refill whole delayed refs block reserve when starting transaction Josef Bacik (1): btrfs: don't drop extent_map for free space inode on write error fs/btrfs/block-group.c | 80 +++++++++++++++++++++++++++++++++++++++++++++-- fs/btrfs/block-group.h | 7 +++++ fs/btrfs/delalloc-space.c | 29 +++++++++++------ fs/btrfs/inode.c | 26 +++++++++++++-- fs/btrfs/transaction.c | 38 ++-------------------- fs/btrfs/zoned.c | 1 + 6 files changed, 131 insertions(+), 50 deletions(-)