Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6928649rdb; Fri, 15 Dec 2023 12:08:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQotD5nqyQ8CWZ5JXiTd2259Xf52urSf39Qg5lTiIw17pB7mjZbxKogiRTEE/3rhC4ezw4 X-Received: by 2002:a05:6359:6e18:b0:170:6807:d8b with SMTP id th24-20020a0563596e1800b0017068070d8bmr9159321rwb.59.1702670884851; Fri, 15 Dec 2023 12:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702670884; cv=none; d=google.com; s=arc-20160816; b=MQukFJE4f31AficR0jsL421ImlGA4zE1/vW1hwHLFXx9nnx2JhGq3RH+wHZunXJtqC y6LczZuRgVOa/e5G8UO+oqfvzKgbPik781KPNhka/nwzTKnPuZRDC7Fg3996Bs0iyy7y eS/qEM5anSHeaRMnyMvJWq3CCgFnIOMTE3HfUpXi1fhSXXIc+Rnetf+harkBcC/dHZGk k/zW6ccpoHJk7iJFwMWS6yhJhd7lO3m7jwm2zhvyHw3vqig/lyU5PcrChCxuISQZZOQl pW5AS7+AzCyW1AITw4YaqaXD7UWW7aXjyudoSuMpuizwmArzrV9GjZ/t4XZ2dm4pl+hz hCEg== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jtQJbz4fdyRVv5uL17Tn1fQYq5bZueXqglZgma3TBl8=; fh=timWtHA7UGScEpXk98kbQKGrJEBXaf2Y1JfEnqzAnNI=; b=PrlFUwH4Jh9AfeHwYwFetoBLK9HP6m0BhBOOf296qg8npcSfbdtQnlmX11xh07uuKB pBrJbV2NzyQnSvNAoD5C+0u8/42OVXvIsTpxnzeu45par6D+1NPh4I6UD7WpLiJHP1Nj MsrMzt98F3wVAZOsiHhxZaRS7kleTjd9qTwIuntLbSP97hlOKOI2T/I8bXJVBWyxhrLH ExtuSVMsuB9Rl3sd7hBzUlTfGt151ehEyTfk+AGbobw8ap3EiNEZqUtNP+aJt2AFS4Td xJiMbDry8r76UVZFJnx7Pa75GZP5aVl7N2PA8CTba5TcGiMCuWOIsF+8ZLotuTibEEjm pI1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gFuvhDYv; spf=pass (google.com: domain of linux-kernel+bounces-1607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1607-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k126-20020a1fec84000000b004b69a9af318si956096vkh.222.2023.12.15.12.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 12:08:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gFuvhDYv; spf=pass (google.com: domain of linux-kernel+bounces-1607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1607-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 933A31C23D1E for ; Fri, 15 Dec 2023 20:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F7B66BB40; Fri, 15 Dec 2023 20:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gFuvhDYv" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 949605644D; Fri, 15 Dec 2023 20:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=jtQJbz4fdyRVv5uL17Tn1fQYq5bZueXqglZgma3TBl8=; b=gFuvhDYvigMOyd9cgE5NRHYGMP JXw9GfbWWxR/6/N7DMulUTX+25ifhwz3zoyE0lzX7H9OfJYCNg/MFDdY2MaFng+trp0U3o+gQBSx3 8C5KaPgv1m/g3oZI+7UCdOI97RLBceH7asFFwM1ltU+xJV/gQlbCZuCKhTnKmdVzUNHtkvoZs1egf mpT5f56FHW51GIvbnhKxjwc9jnQVUWJE91EHvZ66wUeoxcvcgINVM3y85oKEZegnrtAzP3d07jUBO kiQ53iw4H/NDc5AGQWsFnkidijsaDL1EIBmVDdIUIGGK9wbBfziTFxK9L+YOU7apsGq6OiRL9mwts wddReUhw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rEEOW-0038jQ-38; Fri, 15 Dec 2023 20:02:48 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH 11/14] sysv: Remove writepage implementation Date: Fri, 15 Dec 2023 20:02:42 +0000 Message-Id: <20231215200245.748418-12-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20231215200245.748418-1-willy@infradead.org> References: <20231215200245.748418-1-willy@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit If the filesystem implements migrate_folio and writepages, there is no need for a writepage implementation. Signed-off-by: Matthew Wilcox (Oracle) --- fs/sysv/itree.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/sysv/itree.c b/fs/sysv/itree.c index 725981474e5f..410ab2a44d2f 100644 --- a/fs/sysv/itree.c +++ b/fs/sysv/itree.c @@ -8,6 +8,7 @@ #include #include +#include #include #include "sysv.h" @@ -456,9 +457,10 @@ int sysv_getattr(struct mnt_idmap *idmap, const struct path *path, return 0; } -static int sysv_writepage(struct page *page, struct writeback_control *wbc) +static int sysv_writepages(struct address_space *mapping, + struct writeback_control *wbc) { - return block_write_full_page(page,get_block,wbc); + return mpage_writepages(mapping, wbc, get_block); } static int sysv_read_folio(struct file *file, struct folio *folio) @@ -503,8 +505,9 @@ const struct address_space_operations sysv_aops = { .dirty_folio = block_dirty_folio, .invalidate_folio = block_invalidate_folio, .read_folio = sysv_read_folio, - .writepage = sysv_writepage, + .writepages = sysv_writepages, .write_begin = sysv_write_begin, .write_end = generic_write_end, + .migrate_folio = buffer_migrate_folio, .bmap = sysv_bmap }; -- 2.42.0