Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp331941rdb; Mon, 29 Jan 2024 03:55:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKo0w3TgedmQecpMDOX78/BNxwpxIkiYSDJBMjNAirxKVtw/27KdLIDflayz9taslK/pZP X-Received: by 2002:a05:6358:6f1b:b0:178:6184:1881 with SMTP id r27-20020a0563586f1b00b0017861841881mr1625656rwn.58.1706529335411; Mon, 29 Jan 2024 03:55:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706529335; cv=pass; d=google.com; s=arc-20160816; b=zL68Vla7/+tq1zkyeA4KbsErl0ZqER72I1UTNYsPK3bEfpg/MVTEWlo1sieHkTkB3s J2XRZZMNKuoEsKI9RbnVSHpBumrhGq/JKxCoZrdyXwBq+yno9tAiO20FHCKjDdGunRuQ Lx6z/LlsnWt0k7v8xE/WVjA9q1j1qiQQK4ppujN9ExG8HcIq7Qv2X68zjkAungnmPj2K 40tgsANDupBk3kwDJPF1K7p3tj9pScb6Gg/iHqIQP8KPs0kx1JqYurepDncMQ+fXvHJS Xq0yQ7s/NlJZwWDhdlrrBju2VXczWHhz7acEML4BsICuNM+OYJklFbrb5dSomyowNFf0 QZjA== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=ywApO59Mwrb0F3WdOnI+RuaKXV32Yr1moSFyFDBVZS8=; fh=TncisnLepamR9eYyUPx30nqn5b6qQAsmiKSJOESmvbg=; b=T6s5Y/pmeSd3FevHtojwV8jPruJ+kKteDmw065JoRzwqJS60cFMJvsCSof4UpDb1NU O2qEWV7h90SmaDtusPYPX/yp6k4WORtKzu1+/R/PSXr7kVNgzOJlu1LVSjbWZgpRmY5m WyhwkbEVmRuY8BiPXBg/vF4J+0Dutq1kkVqw2JfG01pIoOJ+Bmup0f8qJ1NYUeodP+cm Tdp+EPkrDMxnstfcoifwuqSfIPow13Ly66H3Qjm5ynkeDFK6DhGWbAA5atiMeA4B9aHn k8pPnQQL31bDdTpzAWjW/saUtaEefdFIJuWo2qCvomWYF49px+F1H2ZfZ2K1MTC5BEge uZgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=igw5lcxN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t11-20020a056a0021cb00b006de0efb05b9si3913808pfj.166.2024.01.29.03.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=igw5lcxN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F6D4281DF3 for ; Mon, 29 Jan 2024 11:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 728165FB89; Mon, 29 Jan 2024 11:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="igw5lcxN" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 33B255D8EC for ; Mon, 29 Jan 2024 11:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706529325; cv=none; b=C8QMmq62KpEpvEspghX6946k1dS5BXnv23vOcSRWSYWafECQngKupapkG5KQdWF5BARdjIQ6tfLXJ69adquXgvt1A6kFvg55tJlsDk3Qm4vRJRz7ArS9Bd20GD28f+h7CishNB/8ROtXfZGCB+JVUeAwxQuZ37AdeUNhfqyEMlM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706529325; c=relaxed/simple; bh=PMrkwWNf0Ov30HBPXASH7CkKvXggMgrqzxgN3NrV/VY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BO/TisX3sPy0CTvnYQkmT7XHZ9EypvllhZyFmc09tcwA2NydYZJbn8FliBN+vL5tMWQKrkeYisqm1aWRauQnihsKJZoL5MbZ7u0E5sNF5VURE0tVzStKPGaqCkVp+HxSn6BL0pYfigKBxPLroan7haImsSr85H7kCq0WwWXPNZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=igw5lcxN; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706529322; 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; bh=ywApO59Mwrb0F3WdOnI+RuaKXV32Yr1moSFyFDBVZS8=; b=igw5lcxNsqD6Reidyq514XVVxx81MmjwXO9T0D4DlkNsE/q8GDAfL+ZGA1grw5sC05jtbV uvP4BI8q2KoAvuet/F+xvEyqflj7HTJGn9uugSY+fGLkIFWwROjiMDvrcYM8ZVeg/aJ3j7 Bdinq8qYFVUbrxooxmV4xFUnyVTTpg0= 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-500-_hvLZoDIM-y0hjc_RyKfow-1; Mon, 29 Jan 2024 06:55:18 -0500 X-MC-Unique: _hvLZoDIM-y0hjc_RyKfow-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 348C929AA3AC; Mon, 29 Jan 2024 11:55:18 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id 967671121306; Mon, 29 Jan 2024 11:55:16 +0000 (UTC) From: David Howells To: Eric Van Hensbergen , Dominique Martinet , Latchesar Ionkov Cc: David Howells , Christian Schoenebeck , Matthew Wilcox , Jeff Layton , Christian Brauner , netfs@lists.linux.dev, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] 9p: Further netfslib-related changes Date: Mon, 29 Jan 2024 11:54:34 +0000 Message-ID: <20240129115512.1281624-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Hi Eric, Dominique, Here are some netfslib-related changes we might want to consider applying to 9p: (1) Enable large folio support for 9p. This is handled entirely by netfslib and is already supported in afs. I wonder if we should limit the maximum folio size to 1MiB to match the maximum I/O size in the 9p protocol. (2) Make better use of netfslib's writethrough caching support by not disabling caching for O_DSYNC. netfs_perform_write() will set up and dispatch write requests as it copies data into the pagecache. (3) Always update netfs_inode::remote_size to reflect what we think the server's idea of the file size is. This is separate from inode::i_size which is our idea of what it should be if all of our outstanding dirty data is committed. The patches can also be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-9p Thanks, David David Howells (2): 9p: Make better use of netfslib's writethrough caching 9p: Always update remote_i_size in stat2inode Dominique Martinet (1): 9p: Enable large folio support fs/9p/fid.h | 3 +-- fs/9p/vfs_inode.c | 1 + fs/9p/vfs_inode_dotl.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-)