Message ID | 20231207212206.1379128-21-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 AADB5C4167B for <linux-mm@archiver.kernel.org>; Thu, 7 Dec 2023 21:23:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 425B06B00AC; Thu, 7 Dec 2023 16:23:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3AC1C6B00AE; Thu, 7 Dec 2023 16:23:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2262D6B00AF; Thu, 7 Dec 2023 16:23:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 103D16B00AC for <linux-mm@kvack.org>; Thu, 7 Dec 2023 16:23:31 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D65E4A0268 for <linux-mm@kvack.org>; Thu, 7 Dec 2023 21:23:30 +0000 (UTC) X-FDA: 81541298580.21.E4B7F76 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf01.hostedemail.com (Postfix) with ESMTP id 230FC40005 for <linux-mm@kvack.org>; Thu, 7 Dec 2023 21:23:28 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=VGTKtpEz; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf01.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701984209; 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=VpkcpqQGFjGGotXxykSSFj/z2Mj8Id/3cGjDF6fP5aE=; b=DdH0QXgrn43rtXhJo6dVL9ee0E2illl85BLesPcCxjHdn3F98dR8h6T1JhWqXC52Oyo9Mu qW/2CIgI/oQQoIytsGT2vEM2cM1sPoWJj0bXvABNizRo1c9fIqySFvmrQceiR+F0wui2aD Wnm/JpDXYDP++AQEBS874Vp/cPPLkWo= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=VGTKtpEz; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf01.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701984209; a=rsa-sha256; cv=none; b=L1OMDnaKwhZyEzfgzw+PegFuZY0pDKcni4a7+WKNJn8oyVIyjh4bhyOLWXHtWgHqhVHbcu 0Cr9sxgFpl1NXElraZrAXIt2f/9yJuxeG23iVBc0qp7/P1x26h66L5Q/f7iRiL25V4pdme H1dnSjxSkWFOPlKAmSLStre7/Fd9anw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701984208; 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=VpkcpqQGFjGGotXxykSSFj/z2Mj8Id/3cGjDF6fP5aE=; b=VGTKtpEzfWNMLgSiUW3mR+QO8CpvGgyLw5k/sFc9Y2hXrShGQ9/Hz4JjHfetn4Vutn4pL1 eS7hC+sKNH9VubkqGwNsizVblWnBXecIyBVJpoW0ikXdnaT35JWUqdW4B5g3rujNkVz3Bd UXNhGpZApCxIZevLgsaJ2PabNo3ZyyY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-318-sXfvH7bCOUSVW6S8yfXyow-1; Thu, 07 Dec 2023 16:23:22 -0500 X-MC-Unique: sXfvH7bCOUSVW6S8yfXyow-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 21A79185A784; Thu, 7 Dec 2023 21:23:21 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.161]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5C37740C6EB9; Thu, 7 Dec 2023 21:23:18 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jeff Layton <jlayton@kernel.org>, Steve French <smfrench@gmail.com> Cc: David Howells <dhowells@redhat.com>, Matthew Wilcox <willy@infradead.org>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Dominique Martinet <asmadeus@codewreck.org>, Eric Van Hensbergen <ericvh@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, Christian Brauner <christian@brauner.io>, 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-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 20/59] netfs: Add a hook to allow tell the netfs to update its i_size Date: Thu, 7 Dec 2023 21:21:27 +0000 Message-ID: <20231207212206.1379128-21-dhowells@redhat.com> In-Reply-To: <20231207212206.1379128-1-dhowells@redhat.com> References: <20231207212206.1379128-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Rspamd-Queue-Id: 230FC40005 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 1iiz34xxooy67mqhre5ea3zkfibksieq X-HE-Tag: 1701984208-515349 X-HE-Meta: U2FsdGVkX18kjy8oJt75dBgSi4jy4fWlKojqbhCOWKs5jEvNfksJa4pz7qmxxXJwLMAMBW8EWIDvESROsRC7/NJAE8ct9DfT23SEhr4g9IqgWuzagkeNjna6zRndiJHRbrmSLAPktX2QYVXAUUDgWzAcWDjk1uSMoi/fwLUTqqGKM6sg+zImnbNINpyyoUhscmDp+lV6lXf0zHo9pvfj5oW1sBGf+fMicfVdoHiVyi1OfRVbkcCu09ZAVSR09zQ7SNIMjxGaQI95xZiAuhh9hjkmlcrGS7keWwH7LLCN0MIGSDuzEtL8x0jv6YShAghd6cVioiRJMyUbwUnZJx5d7ftyAbX1NfSulh9zuDOvx2b4R1MAiMoJHmRgPZnbYCxS7R/m3pT8D52zLMbEqbBnBT74hRBeXdX160TFEC2i8bIv+GgFrjrakVzggmjnczL6zauqSdGvYzboKTJO29YvKYMXAlXvqjZizqXghWjy5xs00mCK62blwrR6nKyH4E0F16i/mwjgZjjtGS84hvHbUx1xnceqnZyfh0ylrviP7/ojtN47Q9bdVRsIVvxhNyjba9EVXSkmjiC75WkO8HDT9Cx/KqHdVJ4X268nrnbJ7BEe/uI0Ez9RcWuks2qYK7NBkE0QV8VLiArWj5oWfo0j0hjay6Yye++B67vR/88KXmkAxx3U9C2ZFY20lBOQaK1xtZ8ItbRaz1VTEVlubOR5d75nvymOfGNQfYauk2Ul2dXGnZjFV/vOygTlaJMBNG0EJSmj4fl5LXq291Pk6ZExy/yDvEgFLK0oDPeFxJjzxrlMaCxYGdXJD6XnaAugFW1Pmr6xg8z1hH0Nm+A3HdPUXAOzVILMMPY/OvLeJzhlXXiqW0Q8StCO4MsMS1JeF6/Z+IdLFllQatbXI8DPYTm0pjN8u5qunkCft+YySAkFiINcdXajt0JRfXspgiILO+MQrVtJ09kDoLmQ0RH06e9 qiUBCoPh 1Nq2p9eqby4vie+/TShvBBQemax2U27xN2232pf2+CZSwtw4HZ3IVpcZwH5d5sN4qhO5LDrJTlwh+3VJDaZzZ4HixG9lXLv0/VOzFLLugZCuw8QEo2Kz8DNlO6c9VffO2bZGv4rXxGngsgSFJ+MuxQ47g69gdag3/8PtEMY0aDxXEmb18PB4JiGI4oFCdZDgdMH/8zFK22sDGX36IMQEBOZGSAzyO38ztSgE3Vi8jpPHCUZ1cT/cFsH/TlchoLoI7kkLeyZliPktLv2Mh+mql/fIWzb44s3RiUhzaqzeIajYMD80p0NGgRwGBbXjwx82/HLdMPstcLZzq6VixSrRpnQiXcYE7+uDTgQh8u74AdjLQnuUwp07KxP4lYiM5KdzPhAjdw9YbsHJMaKJrSP15NzZb+A== 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: Delegate high-level I/O to netfslib
|
expand
|
diff --git a/include/linux/netfs.h b/include/linux/netfs.h index fce7a5a86e8e..a14af93efccf 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -245,6 +245,7 @@ struct netfs_request_ops { void (*free_request)(struct netfs_io_request *rreq); void (*free_subrequest)(struct netfs_io_subrequest *rreq); + /* Read request handling */ void (*expand_readahead)(struct netfs_io_request *rreq); bool (*clamp_length)(struct netfs_io_subrequest *subreq); void (*issue_read)(struct netfs_io_subrequest *subreq); @@ -252,6 +253,9 @@ struct netfs_request_ops { int (*check_write_begin)(struct file *file, loff_t pos, unsigned len, struct folio **foliop, void **_fsdata); void (*done)(struct netfs_io_request *rreq); + + /* Modification handling */ + void (*update_i_size)(struct inode *inode, loff_t i_size); }; /*
Add a hook for netfslib's write helpers to call to tell the network filesystem that it should update its i_size. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- include/linux/netfs.h | 4 ++++ 1 file changed, 4 insertions(+)