From patchwork Thu Mar 28 16:34:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13608978 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3338CD1283 for ; Thu, 28 Mar 2024 16:37:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D2BA6B009F; Thu, 28 Mar 2024 12:37:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 75D5A6B00AE; Thu, 28 Mar 2024 12:37:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5D5486B00AF; Thu, 28 Mar 2024 12:37:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 3C4916B00AE for ; Thu, 28 Mar 2024 12:37:07 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0D0B5160D9A for ; Thu, 28 Mar 2024 16:37:07 +0000 (UTC) X-FDA: 81947002494.05.FB009ED Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf05.hostedemail.com (Postfix) with ESMTP id 30B8D10001F for ; Thu, 28 Mar 2024 16:37:04 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=ZmiG1GOZ; spf=pass (imf05.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=1711643825; 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=1cpuvvIbFEcetaS87H6cM1rRVTGnrJIggUKyKUnRcT6T/CdySXiioJQYY29kALBAup/V+v nQbKMsiVZxAcDOujYRyIQuodxcLvovoVmsfVvuqBKQq8McmIyctec6ISNzC5hBXvVzqycJ vs4uXA4vbwLQKo6QjEs2sJkLBzbkw3g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711643825; a=rsa-sha256; cv=none; b=BOBvq9gRLjdf3SamRJYm97tuWYVvNrLyzn7RrhoJTyb5dC38sbXL29MKqNfbi6Hq4sTvgN rRnSjv0I8/M1k+SSNWAYVwPCMaLnIA1SDKNLQWzRRrPEy+eiTIqkNUDXXomrEtet/jv84v wa5YLJZ3ysgxba46SfuBoLcF3HDvv18= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=ZmiG1GOZ; spf=pass (imf05.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711643824; 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=ZmiG1GOZLCjwBMM6UUko3RHGO6ip5zUYh0/uwXBkzQ1M0bFzlw72HO5brBEyLsIV00tjtd XSLzcE4SEkBHjZL4qrYr0+Kf0x2JAV6QegYjEep/yROPWVpg0Az5eUDtnk8LHfkTMSbxlU bsFQqvuDtaOSpbu6UF6Bstdj0tjQPjs= 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-646-CkA_MFrAM2-Rxey8z_hUEw-1; Thu, 28 Mar 2024 12:37:00 -0400 X-MC-Unique: CkA_MFrAM2-Rxey8z_hUEw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 0BD532824778; Thu, 28 Mar 2024 16:36:59 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.146]) by smtp.corp.redhat.com (Postfix) with ESMTP id E197CC37A83; Thu, 28 Mar 2024 16:36:55 +0000 (UTC) From: David Howells To: Christian Brauner , Jeff Layton , Gao Xiang , Dominique Martinet Cc: David Howells , Matthew Wilcox , Steve French , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Eric Van Hensbergen , Ilya Dryomov , 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 , Christian Schoenebeck Subject: [PATCH 11/26] 9p: Use alternative invalidation to using launder_folio Date: Thu, 28 Mar 2024 16:34:03 +0000 Message-ID: <20240328163424.2781320-12-dhowells@redhat.com> In-Reply-To: <20240328163424.2781320-1-dhowells@redhat.com> References: <20240328163424.2781320-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Stat-Signature: b416ycnji9mbnowhsa8nq196hr6guihn X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 30B8D10001F X-Rspam-User: X-HE-Tag: 1711643824-864699 X-HE-Meta: U2FsdGVkX190bnm+IlGyul6XE1qvrkX7i6uRUqlhdJCTuS3if8YNHuLfwazVrdfAoeSBH5q0L2VbMImMBSOjItAihSHGq9tHpww112Ba11Dqmq/m2HX24yw+nox1myT8WQ+HlYVK/33akq6FGtknO/OJBdNqOWcUPD4cszt5MrJAVbBUjAI8ZuIEtxRuyeUQSE8882XlKmffcj3hhZXT37Mm8Ncsb5liiV6eR13FURiiUdtRGLgdQh0sBpfUhBd0ZgCfU33X7NIKopuHlYwlzIlI36LZ8MzvGQgsx7fPZOk07lUhS8u8fs6JYdk4amOwatJxFwwzsGfgr9H/wTaCGF3fMI2NUfzBRBiLwY3P15NSXUP/aqKc83KlaUK0Qf9PIhzANNHv6V2pnATyicskNnLydWRZdoBAxluI6EdZoHZArKBfKbkrGJASgRBfWClhMFP5FV34JzxerIwgyOYhk5PICIGuwz5Un/ZAcmfVNU652A92XY1MeS0zMu7X0MMDTkKmuRC5q6J6osez7XD8sDLmh89ozkct09LM21J5AJgGoNNiwpECXn6XiureJUMGGWTvNUyxW7xcL+gOjQtELz2kUaPmaB5NKg+NRXImSXwyyuafN9FWQkrJjAKvazQ0yGhmCPUWfsDWWIt+sNx0sqbclU1D7zYhNvjdY1LUsa45UpFt21v3/lZximHsTV27SZwwhxDxuNSIGbLgyVAI4kNEME49z/qcbbVZFzq1lbXa7PoZgKgZW68AIoDR3jgXMqYb08v9tazcXNa8lpwQDdVVlUYESuz3KoueyX5qyCM5ONCLGrtf403FnkYjwSYx5pThltcwdxVYfIc+J9UEYyuq++j9RAkqdhPTmiuCTlRXeHHT6SKQ2CzCKMX1R9lLOOwM9rqEW2NJOpxy9huGR+fohhWQ1po74NS6OULa7BdBS9Bv5BPlKrFJnWUvVaTvs+yzYKRBElpYY85cYT6 t2rybCs+ +RQjk3NFcPJAwliSNZnO2iFqnCh06G5GtM+oCl5CvXI/6zXiub7LFTzWIvIHCFLDKUJGuDNbrNT2L5egl1Xxcd8mY9+61IbNDyL0zkIiBrGODRXI2iaFsN7UAJFX5YbDk1A4xYmYlF/zoXjIFe4Ejqc66ZPiMFDxAON26XtzKaIByS7gEBjUC78qy8pqe/7t5+5Mq+2vq1PhZNdcm5ZBnzmLcqhW66DKB9TaQm6PfVOkFilXxNtag4OK6qxk08VPWinTX/REerz0iI6prAuY3NWKnWPMReG6ne/FbyPIMXnJWrV/ia73boj6o4GuTCBDRNonlrlpOS2utg3AfSjAxpxPCZLffsY/SyjrttL6qeCe2uhXassQ+w2cmuBr4F7AgGEvIr53f68CgjNih881nRtSku7ZkHz6liH0dTGyd7KDNZfNFGowalyfZtKsT/cFhvdvvn4suXMTtp0s= 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: List-Subscribe: List-Unsubscribe: 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 cc: Eric Van Hensbergen cc: Latchesar Ionkov cc: Dominique Martinet cc: Christian Schoenebeck cc: Jeff Layton 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(-) 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, };