From patchwork Sun Jun 13 13:39:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goldwyn Rodrigues X-Patchwork-Id: 12317655 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 4C0B2C48BDF for ; Sun, 13 Jun 2021 13:40:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 35CFF61284 for ; Sun, 13 Jun 2021 13:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231858AbhFMNmr (ORCPT ); Sun, 13 Jun 2021 09:42:47 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:55426 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231846AbhFMNmr (ORCPT ); Sun, 13 Jun 2021 09:42:47 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 365411FD2D; Sun, 13 Jun 2021 13:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623591645; 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: in-reply-to:in-reply-to:references:references; bh=PvVASk6wKeg8uiU+9eR/xYZBw7gAnOw+H/nxmFlyzrU=; b=QL8CUyw0Ouk3fzA5dgi3XKcROPnr0Th9xlr95jn7wfHwTIj1vfOq1Dm5xPq9yDdcoLCjm+ 1KarhgnzOtr0oQ6sOe+np87Eml50GV9zT1rgKN/8YZ8+zl1sZTK+UkbgdXtu9v9fPuJHSM I//UtnJVJpw3YxyPOtykI3zgL17ky68= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623591645; 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: in-reply-to:in-reply-to:references:references; bh=PvVASk6wKeg8uiU+9eR/xYZBw7gAnOw+H/nxmFlyzrU=; b=ANj/FsJUkPpcPaGTvpzD2JAFxsq/Ouab/dIpVaDiS1iNmnI+/l58sQH3wxLgmmyttCHM/5 lcw7uePnVihkqmCg== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id CEC63118DD; Sun, 13 Jun 2021 13:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623591645; 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: in-reply-to:in-reply-to:references:references; bh=PvVASk6wKeg8uiU+9eR/xYZBw7gAnOw+H/nxmFlyzrU=; b=QL8CUyw0Ouk3fzA5dgi3XKcROPnr0Th9xlr95jn7wfHwTIj1vfOq1Dm5xPq9yDdcoLCjm+ 1KarhgnzOtr0oQ6sOe+np87Eml50GV9zT1rgKN/8YZ8+zl1sZTK+UkbgdXtu9v9fPuJHSM I//UtnJVJpw3YxyPOtykI3zgL17ky68= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623591645; 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: in-reply-to:in-reply-to:references:references; bh=PvVASk6wKeg8uiU+9eR/xYZBw7gAnOw+H/nxmFlyzrU=; b=ANj/FsJUkPpcPaGTvpzD2JAFxsq/Ouab/dIpVaDiS1iNmnI+/l58sQH3wxLgmmyttCHM/5 lcw7uePnVihkqmCg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id SuctKdwKxmB0JAAALh3uQQ (envelope-from ); Sun, 13 Jun 2021 13:40:44 +0000 From: Goldwyn Rodrigues To: linux-btrfs@vger.kernel.org Cc: Goldwyn Rodrigues Subject: [RFC PATCH 15/31] btrfs: Switch to iomap_writepages() Date: Sun, 13 Jun 2021 08:39:43 -0500 Message-Id: <75b4c003edceca1866a5abfda2c1bb496ee048f1.1623567940.git.rgoldwyn@suse.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Goldwyn Rodrigues Switch to iomap_writepages() Signed-off-by: Goldwyn Rodrigues --- fs/btrfs/inode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0601cf375b9c..be0caf3a11f9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8430,7 +8430,9 @@ static int btrfs_writepage(struct page *page, struct writeback_control *wbc) static int btrfs_writepages(struct address_space *mapping, struct writeback_control *wbc) { - return extent_writepages(mapping, wbc); + struct iomap_writepage_ctx wpc = {0}; + + return iomap_writepages(mapping, wbc, &wpc, &btrfs_writeback_ops); } static void btrfs_readahead(struct readahead_control *rac)