Message ID | 20240430140056.261997-9-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7679C4345F for <linux-mm@archiver.kernel.org>; Tue, 30 Apr 2024 14:01:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D7CC6B00A8; Tue, 30 Apr 2024 10:01:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4864F6B00A9; Tue, 30 Apr 2024 10:01:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 28B1F6B00AA; Tue, 30 Apr 2024 10:01:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 038306B00A8 for <linux-mm@kvack.org>; Tue, 30 Apr 2024 10:01:48 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 815C2A0808 for <linux-mm@kvack.org>; Tue, 30 Apr 2024 14:01:48 +0000 (UTC) X-FDA: 82066361496.29.6423856 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf07.hostedemail.com (Postfix) with ESMTP id BC39240004 for <linux-mm@kvack.org>; Tue, 30 Apr 2024 14:01:46 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Iucd1RqM; spf=pass (imf07.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714485706; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=83auCTKPJvOhAjo7iO96K59ucStUj2OSCQeoe5vc/FY=; b=T3Ln86H2eWeAeHll8guAHu0GGBuxGZMDvqhOtO1ZiRwXy/0ZEC1+8/TiA0pZC1dANjHOF+ NKDjcn1NkNmoXRQ5TjJsVku/YlfJwin5ZwK71/6/bbHXsmCUixfdMS5VSV1wqqehzMBDGS GZJexFOYfaX2kiPtPbPwq7hrtqpLVCA= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Iucd1RqM; spf=pass (imf07.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714485706; a=rsa-sha256; cv=none; b=tdGEJAmRroO/bM3ysp0vN5SSrKlOK2Vg7wq3au+3MD6MGk8XSNApVX+KrNccOUjDOn4Ujm GGzPsjDc67QEdKDBVBY14c3fqR4I5FBVWa1BMkWS8phQ8md8ms2xL3ZY7H1b9BJ5h6FMGb QuDhOIxmZ9Sshm4oBQfVAytpq6/tBBA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714485705; h=from:from:reply-to:subject:subject: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=83auCTKPJvOhAjo7iO96K59ucStUj2OSCQeoe5vc/FY=; b=Iucd1RqM4oTqan0s1F89EDxSIVAufgBFwVATzaRrx6Jer1MxuVvm7hgELjfn34PMxsUSJa a2u/QmsN+wNstWuKdG+tXs+ugstz/xFV14/4oJRrNVqFnWAYHdYwYL08c2Z3FuyM7tSZgJ 9eK3GRi3t+nY3LeECMAO+xvmECrPV+Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-284-oZEuSy0zPnaGWzXYr0XEnQ-1; Tue, 30 Apr 2024 10:01:39 -0400 X-MC-Unique: oZEuSy0zPnaGWzXYr0XEnQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B246C29AC019; Tue, 30 Apr 2024 14:01:36 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 01FC340BAA2; Tue, 30 Apr 2024 14:01:32 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Christian Brauner <christian@brauner.io>, Jeff Layton <jlayton@kernel.org>, Gao Xiang <hsiangkao@linux.alibaba.com>, Dominique Martinet <asmadeus@codewreck.org> Cc: David Howells <dhowells@redhat.com>, Matthew Wilcox <willy@infradead.org>, Steve French <smfrench@gmail.com>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Eric Van Hensbergen <ericvh@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, netfs@lists.linux.dev, linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Latchesar Ionkov <lucho@ionkov.net>, Christian Schoenebeck <linux_oss@crudebyte.com> Subject: [PATCH v2 08/22] 9p: Use alternative invalidation to using launder_folio Date: Tue, 30 Apr 2024 15:00:39 +0100 Message-ID: <20240430140056.261997-9-dhowells@redhat.com> In-Reply-To: <20240430140056.261997-1-dhowells@redhat.com> References: <20240430140056.261997-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Rspam-User: X-Rspamd-Queue-Id: BC39240004 X-Rspamd-Server: rspam06 X-Stat-Signature: s1ohrst3j5j5ho8qkf9ggydxbyq77quh X-HE-Tag: 1714485706-926801 X-HE-Meta: U2FsdGVkX1+L7O9JzK+luRF0q3gIcerSub6wdkVUfRPZFHo4Ie06hyPOOoLyzM2sVuUUaI3h7ZNLZimNbO3pAfglOvP9z7mgtn0+D7URqG/5NcL3e2T5BoYSpng8TUER2mLCJCYo67FjaxP1zQp1nljdiwqQJVg1Gk/9OyswfBFrCxwBghCpyFS8wSKIbXZNqPd5fg4XyJjc2prBe7W/jRux2d+UbcwleBtHp0bfTQvg9i1cdTmTCE3LbWp2vGM01BebMhprlvMGVR9Kw1BGJfa+kTbx06Jg93NCRs2ivV30UswFS1eBWlvauCT8+kfWVVMoAOKZXNriohddBfs8KYfMOCVO5m5oTH7pTLSy7jNA+tNquW3NvEZYf/LGX/62h/gDQgyLDCVw0N7LOHZlok/aZQwmSZPCm3swRhuSMLB/XO3yNYdvlGhsrnPzAJbP1WZKfJL0Y/g46Pqj9dp6k4L7zI7zmX5UWEKWeeIi9nr+AND/7Kkk699rF3yZ6H6XX5g1odRyKOpFiTX7pLank4vgBxhNi/mPKq7epvp9EeUjjABAL55hNhpRjuEk3YJFlrgmItJabuCPG+loGb0+dLwEbhO1EUc89YHLw33UeEt9Eo/gyz5ieKd09KCulLnQ4UubnUwdHSSXXwKPS66nSc36gXf651O49k5rhcHTtmVOzfADVwcCkRH7BLN01u4Md3cNY3X/Mbs+rgAXadttvQNtPeRsNWtIhZZuTz3vHPAlRzwibP/NWUxKlX7uWqjaAjBG07zRQbLubHN55xEUsYGrJ4KIOARKl/NFEECx5Q9ds650+g0xpiX+8IV3R1hFvbzWXHtm8VRAr87h9xs7T3EClTRcjXkkvOm8DV2H0dswbRA7pTVqF0D+P7W171zzV6+VoJjNgiETA7oCPerzYuHpUj/TtPFJCGQUlnRZMGO+7d+qauRDUHWxHqHrerAK1+UPG+NUHBjxeOwr77y NMvO7kbS VtExIfz3pxcTfwW0xMQCGP35+coOCi8kGmptxnCTmizKlKV52g1zcYpZ1q484EIMAhmkdrnkvjGANXF4YgZPt0Y0pdfxcc14bmK1xQk7ba+WXrP1Xo5drrQfXZ5pcP3twpaamr13JqgxzFqXzQST66VqPgjGwpG7rMZRitw0gpMxBfKx4qRI+mitbeVUeMiktJHso5gvNgwoAwTaHKCmrgpSeIr5/OML1kxQzt1vQNOTV3Mmhvz25kBJ2gsEDEb1CSZzRlkots5Oqbb8+Gww1LXxG55UyJ6BHaoifFvvGvRdJ0cSwViuPPouTkEppjy8UCCg6dBdfYqqoiiMPhkV42n8aZUnhGGxXAKI/Fu8X/P/U0nf0hxAwREgnd7vOpMauXYz8fHKw8iiwY3n9WXJ6Pk1j7NFW9sDt56BdqcMrruEo2ooF7HpkXhw5G2xJcnT9f+r2nnYCvKP2IIk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
netfs, afs, 9p, cifs: Rework netfs to use ->writepages() to copy to cache
|
expand
|
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c index 047855033d32..5a943c122d83 100644 --- a/fs/9p/vfs_addr.c +++ b/fs/9p/vfs_addr.c @@ -89,7 +89,6 @@ static int v9fs_init_request(struct netfs_io_request *rreq, struct file *file) bool writing = (rreq->origin == NETFS_READ_FOR_WRITE || rreq->origin == NETFS_WRITEBACK || rreq->origin == NETFS_WRITETHROUGH || - rreq->origin == NETFS_LAUNDER_WRITE || rreq->origin == NETFS_UNBUFFERED_WRITE || rreq->origin == NETFS_DIO_WRITE); @@ -141,7 +140,6 @@ const struct address_space_operations v9fs_addr_operations = { .dirty_folio = netfs_dirty_folio, .release_folio = netfs_release_folio, .invalidate_folio = netfs_invalidate_folio, - .launder_folio = netfs_launder_folio, .direct_IO = noop_direct_IO, .writepages = netfs_writepages, };
Use writepages-based flushing invalidation instead of invalidate_inode_pages2() and ->launder_folio(). This will allow ->launder_folio() to be removed eventually. Signed-off-by: David Howells <dhowells@redhat.com> cc: Eric Van Hensbergen <ericvh@kernel.org> cc: Latchesar Ionkov <lucho@ionkov.net> cc: Dominique Martinet <asmadeus@codewreck.org> cc: Christian Schoenebeck <linux_oss@crudebyte.com> cc: Jeff Layton <jlayton@kernel.org> cc: v9fs@lists.linux.dev cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org --- fs/9p/vfs_addr.c | 2 -- 1 file changed, 2 deletions(-)