From patchwork Fri Feb 25 15:53:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 12760513 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 C4928C433F5 for ; Fri, 25 Feb 2022 15:57:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242478AbiBYP5e (ORCPT ); Fri, 25 Feb 2022 10:57:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235252AbiBYP5d (ORCPT ); Fri, 25 Feb 2022 10:57:33 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112811DC98A; Fri, 25 Feb 2022 07:57:01 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id BCB601F380; Fri, 25 Feb 2022 15:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1645804619; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5TiYyUbi82Jc4N9YQSVkhw89f6hPd1w+8UfjYmR5n30=; b=ciky6OZbxV5jgiFZqdsa1os2xNkmiaBS43SX3NNV6sd/cKloeiIL/KcG+DO3MMR7A/J75D shPjWZurivt8YVWKzD/ytM0LmGV4B+VDEJs6W+AcwMByq+jwcEqrX2dLV6s2KnDvCBJvJb s2qfa3/0NeIqszwtmt91eJycDggW0To= Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id B5019A3B88; Fri, 25 Feb 2022 15:56:59 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id E72C1DA818; Fri, 25 Feb 2022 16:53:09 +0100 (CET) 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 5.17-rc6 Date: Fri, 25 Feb 2022 16:53:04 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi, this is a hopefully last batch of fixes for defrag that got broken in 5.16, all stable material. The remaining reported problem is excessive IO with autodefrag due to various conditions in the defrag code not met or missing. Please pull, thanks. ---------------------------------------------------------------- The following changes since commit 2e7be9db125a0bf940c5d65eb5c40d8700f738b5: btrfs: send: in case of IO error log it (2022-02-09 18:53:26 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.17-rc5-tag for you to fetch changes up to 558732df2122092259ab4ef85594bee11dbb9104: btrfs: reduce extent threshold for autodefrag (2022-02-24 16:11:28 +0100) ---------------------------------------------------------------- Dāvis Mosāns (1): btrfs: prevent copying too big compressed lzo segment Qu Wenruo (8): btrfs: defrag: allow defrag_one_cluster() to skip large extent which is not a target btrfs: defrag: don't try to merge regular extents with preallocated extents btrfs: defrag: don't defrag extents which are already at max capacity btrfs: defrag: remove an ambiguous condition for rejection btrfs: defrag: bring back the old file extent search behavior btrfs: defrag: don't use merged extent map for their generation check btrfs: autodefrag: only scan one inode once btrfs: reduce extent threshold for autodefrag fs/btrfs/ctree.h | 2 +- fs/btrfs/extent_map.c | 2 + fs/btrfs/extent_map.h | 8 ++ fs/btrfs/file.c | 97 +++++++------------ fs/btrfs/inode.c | 4 +- fs/btrfs/ioctl.c | 256 ++++++++++++++++++++++++++++++++++++++++++++++---- fs/btrfs/lzo.c | 11 +++ 7 files changed, 296 insertions(+), 84 deletions(-)