From patchwork Thu Dec 14 16:13:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew Wilcox (Oracle)" X-Patchwork-Id: 13493231 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VC8O7OZf" Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0D8E8 for ; Thu, 14 Dec 2023 08:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=1faX2j6ztTbgGq3oCx4KsuIdr8SFefn0me4AXBHGi0Q=; b=VC8O7OZfxWg8xU+f6xGfg5EY8v WT52HshRTVndM/XZ0ZeOI7nmZi1f2YFgVk2a03IL6L3qEL+BZcnqPc0XAlJau6aZHiGz4tZC2808J a+NszLtom/i6r2Kcjys8169sLm5O2wNh92l2A45qqQfYuFKjWuZKY6h8qyBai8XwiipN4MExXYFiK wkR8s74hOkidB25RyE9h2bm2y415kAzTt59FpU8//tt3KRYNcV4pYIlGnwi9bgid54E7ep0h0zMtl HUCtDjY1JfuVf8M3fSnXHmv/Vf3ulSDpGkrpuHIiVzFQ22XUF7rWUYWvG2T5cjHtTW40SIy8/LrDi +0iTkP3g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rDoL6-008U8B-Ny; Thu, 14 Dec 2023 16:13:32 +0000 From: "Matthew Wilcox (Oracle)" To: Qu Wenruo Cc: "Matthew Wilcox (Oracle)" , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org Subject: [PATCH v2 0/3] Convert btrfs defrag to use folios Date: Thu, 14 Dec 2023 16:13:28 +0000 Message-Id: <20231214161331.2022416-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use the folio APIs throughout the defrag process. v2: - Add set_folio_extent_mapped() - Rebase to next-20231214 Matthew Wilcox (Oracle) (3): btrfs; Add set_folio_extent_mapped() btrfs: Convert defrag_prepare_one_page() to use a folio btrfs: Use a folio array throughout the defrag process fs/btrfs/defrag.c | 93 ++++++++++++++++++++++---------------------- fs/btrfs/extent_io.c | 12 ++++-- fs/btrfs/extent_io.h | 1 + 3 files changed, 55 insertions(+), 51 deletions(-) Reviewed-by: Johannes Thumshirn