From patchwork Tue May 9 16:02:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 13235921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57198C7EE22 for ; Tue, 9 May 2023 16:08:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235608AbjEIQIf (ORCPT ); Tue, 9 May 2023 12:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjEIQIe (ORCPT ); Tue, 9 May 2023 12:08:34 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0615C1724; Tue, 9 May 2023 09:08:32 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 74A1F1F86C; Tue, 9 May 2023 16:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1683648511; 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=2cPwDGRVO7/+D7PHuk70YOKQsgUCagngy/gIClOvSQ0=; b=clGGe4J7YvAWJmHiUdEM+dmbhmqj4oBnGae0H5t1AXTCbcgtMkk7BGGaqI1LFerONeqkrH Io7sJvAWx/A0lf/rqHK+mMBFUievOZowuIIOO3/eHEKhCM1eBT91/G0JRU/AOcA8mcsoWk L7C2QYiNktxaInJatQdecUdOEggS+Do= Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id 608CC2C141; Tue, 9 May 2023 16:08:31 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 9C257DA7A0; Tue, 9 May 2023 18:02:33 +0200 (CEST) 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.4-rc2 Date: Tue, 9 May 2023 18:02:32 +0200 Message-Id: X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi, first batch of fixes, mostly stable material. Please pull, thanks. - fix backward leaf iteration which could possibly return the same key - fix assertion when device add and balance race for exclusive operation - fix regression when freeing device, state tree would leak after device replace - fix attempt to clear space cache v1 when block-group-tree is enabled - fix potential i_size corruption when encoded write races with send v2 and enabled no-holes (the race is hard to hit though, the window is a few instructions wide) - fix wrong bitmap API use when checking empty zones, parameters were swapped but not causing a bug due to other code - prevent potential qgroup leak if subvolume create does not commit transaction (which is pending in the development queue) - error handling and reporting: - abort transaction when sibling keys check fails for leaves - print extent buffers when sibling keys check fails ---------------------------------------------------------------- The following changes since commit f372463124df5f980de6ee0cd6000a3e43df0e01: btrfs: mark btrfs_assertfail() __noreturn (2023-04-17 19:52:19 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-6.4-rc1-tag for you to fetch changes up to d246331b78cbef86237f9c22389205bc9b4e1cc1: btrfs: don't free qgroup space unless specified (2023-05-03 16:37:56 +0200) ---------------------------------------------------------------- Boris Burkov (1): btrfs: fix encoded write i_size corruption with no-holes Filipe Manana (4): btrfs: fix btrfs_prev_leaf() to not return the same key twice btrfs: fix leak of source device allocation state after device replace btrfs: abort transaction when sibling keys check fails for leaves btrfs: print extent buffers when sibling keys check fails Josef Bacik (1): btrfs: don't free qgroup space unless specified Naohiro Aota (1): btrfs: zoned: fix wrong use of bitops API in btrfs_ensure_empty_zones Qu Wenruo (1): btrfs: properly reject clear_cache and v1 cache for block-group-tree xiaoshoukui (1): btrfs: fix assertion of exclop condition when starting balance fs/btrfs/block-rsv.c | 3 ++- fs/btrfs/ctree.c | 38 +++++++++++++++++++++++++++++++++++++- fs/btrfs/file-item.c | 5 +++-- fs/btrfs/ioctl.c | 4 +++- fs/btrfs/super.c | 7 ++++++- fs/btrfs/volumes.c | 1 + fs/btrfs/zoned.c | 6 +++--- 7 files changed, 55 insertions(+), 9 deletions(-)