Message ID | 20231213152350.431591-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 2C96DC4167D for <linux-mm@archiver.kernel.org>; Wed, 13 Dec 2023 15:25:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED0538D002C; Wed, 13 Dec 2023 10:25:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E5E018D0015; Wed, 13 Dec 2023 10:25:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5C668D002C; Wed, 13 Dec 2023 10:25:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B0E6D8D0015 for <linux-mm@kvack.org>; Wed, 13 Dec 2023 10:25:29 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8FA1E1A01B6 for <linux-mm@kvack.org>; Wed, 13 Dec 2023 15:25:29 +0000 (UTC) X-FDA: 81562169178.03.C217B7D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf03.hostedemail.com (Postfix) with ESMTP id B3D0E2000E for <linux-mm@kvack.org>; Wed, 13 Dec 2023 15:25:27 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RqxUxQdO; spf=pass (imf03.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=1702481127; 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=624glz5lMST8z6NjdeVKHG9bHjNv2oBevZqG3aoWXYT0E0TN//+yk3YeBeTqQGMPtcTwKO /rGzXg+7AlReytHSkpxMHJVQPCqsdRGz+xYf6LAMKU1OEOFkCnGasCVKFVuEKQKx8QYk82 dSwUltB01lMFrpBnWZVr/E9do2oZW7I= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702481127; a=rsa-sha256; cv=none; b=JOs+DdACriPbl1DSKKZCg4NjVsP0QC989Ww11D5LU7XuaIOSVJSbEkbzwEA1SCUndRHoro ikOIds6nDtCIHoBKGOa6BaTZW3sOYuJwP8gy5P8BHzw0RaDOMYHciL8vH+WecS8nd2uwJT EDUDAeEKNa+zVSSZ3iTSQabod+mUl0U= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RqxUxQdO; spf=pass (imf03.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=1702481127; 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=RqxUxQdOkbPY4YYeTiaNVi8hIkdd7ntVKpUuArwKWTIb0TeLYLqAxqIrHbTwwmAbw1B16X aHQL+y9mWQZyunwv/Ov6XdZUOFy0IRFj96rXlRnDZ24YaymjGok8AznUzGQGVKw1CQv5Wd aGeTPjhdjnAV2cnWZvsx042PRka1dOw= 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-304-88t-8xhZOheK8Hq2lph6_g-1; Wed, 13 Dec 2023 10:25:22 -0500 X-MC-Unique: 88t-8xhZOheK8Hq2lph6_g-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 42531182FD4A; Wed, 13 Dec 2023 15:25:21 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 54C0BC15968; Wed, 13 Dec 2023 15:25:17 +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 v4 20/39] netfs: Add a hook to allow tell the netfs to update its i_size Date: Wed, 13 Dec 2023 15:23:30 +0000 Message-ID: <20231213152350.431591-21-dhowells@redhat.com> In-Reply-To: <20231213152350.431591-1-dhowells@redhat.com> References: <20231213152350.431591-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Stat-Signature: tdrk8wrwpybnsum7q19hnggtjn8ggktt X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: B3D0E2000E X-Rspam-User: X-HE-Tag: 1702481127-474578 X-HE-Meta: U2FsdGVkX1+D1p9j81i+XqCz8vrkGNeewQp+uhdvu/MEAWOzpdHCwfCnZI6Kbigh0dRzrjihI8BhP+eR86f/Ymwzm89EXK+MaBAoNrhfnwIFmwhCN5Rm0bkFaMHQUGTLYEChKVWlVhM6fWHmZq5uBaufTAwjkcV4Siu41wCrhV46FoJcnaOtwHyakoCLh2+wg1SVHMnNMIsaY93FcZtLYOBymrgK1N0SjLiJG0RJTvBTgSnm+mnap/fRCIiLPZxiIYY7Ys0unoqXEK7j8Yn6jdGgqrMWqHd2rLQWXJ7Q8Ybs4OSZzWT+07Ll4+b/dgCY2fE7fXz7pMef7IkMdksaxq5OdgulBSXthta1jA8dhz42uA+lDbA7EMVMD2VrnT/tD/b89nbx1ZFZLi/l1I2SjdEFsKEkQeUuD5YJbLo+BK+wgCebXI8fXzgCB+a+kJbftJobEj7OIZ6tS8qu1STN/kLDppHxTaucnMECuzJOb7Ohgs2dJ6Q3gGAXCv8N9YsKIPuNpHJhIhRgRhRKxQ0o0KAexW++UwRYwIFno/W4AbGfaFpexO8p13Vbu5aHNhikzDuPaaJ1y9f4zdPJejUfvGP1M+jKX+G0AoTfJPyjW+Rfvf63QZ4Nk+RLPU61IqOPas7FE4br5BcktXLr9+W848WOaC0R5Y02EL0xOjjDstQdwr1nO7cqSSb8G5z7EOz0Y3kBIlzpj6PR7s0FsJz+r04fGhqWQaqvTviZuo6Wfi2zdrouWcZH9jjfnGLSA52OQXb8sGl8DwiZOtphK4ZSxFjmQ2AaILXimC7/ct+MEKjQ+/TKL5T20co3vAnbO+coTVCd8tt5Gnq8I2W1uUtHEswknRTY4O/rZDa8LsEolnKyo5rKTYFoAaRjDDtZfqMuB3+N6Xlmb5QP+kWBDoeruy+ldUfX9hxWMOlZpF49AND2qyRiu6UuAPhXkVjUZJCJSdQaZyBdhvI/qPex2Wt MNIDRupE sp4o0jfvK2rWpJqcdFCfWkdnPvoe34AC1J+RF3h1Fi48onbpEm90OsxInUvHfGGGsDgmneUAgbIFD1LAzVimfAxRhtkgT+4uHf5pu0LkGyndBJ3ld6/l0e+pFgSYNRNbmvdt3wB3DG2b+ByivhIvCALzm8+wGgISOptiiYI4H/+2Om/NTBOm/JO3ANxcwGHNORiIPkjdcgAwDQCvg4noZ/4iQ6SrWneArJl5pMfF1aDUaTM0MhLJ/2FDxDJ12/J7nKNnVnQVurKUxwAdUUYcQEyXz4ZRvIN/F23BQ/9exfL92wIshSuIchoU2r+6kOVX/rYFjZEae4wyTpYgZCDhlcllWKKmwPOdxSILqQD25mmV9yCEZvuQOFsFKIA== 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: 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(+)