Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3632161rwl; Sun, 2 Apr 2023 11:38:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YjNENeZ15eID7GPhGsSQor3e1U9gI/63Be/ngLoGfEBPWdy/cF2XDEXeQWhnYHgsl8/ZHA X-Received: by 2002:a17:907:8dc9:b0:947:f937:d58c with SMTP id tg9-20020a1709078dc900b00947f937d58cmr5351890ejc.73.1680460707515; Sun, 02 Apr 2023 11:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680460707; cv=none; d=google.com; s=arc-20160816; b=L02V357EmKY8z1DmEQq4D98BiV0nbrV4/T3j0eeB1agMVw8e8+pjnu7am0rMmrq8j8 htC1Y0wmXE9H9gF4gYiPfxLwSR1XTp6kqFXHijuVwqar8pFydVxjqS3V4ESNn5BtZept XJ7cALKWfwnxk0G9ea1AEdqysRwQhYehG+pWzAWL0iNHjFzxY+i5rf5np2Doj/2cw71B Aih4rfJ4Va6RCbJU/ooKK+dDPWn+5XTrTIssz5dnuhEtS3w2koJpmMCACKqZbAWbITcg RQD4+DEf7FpjPDbCFR0BgNvJ39/cpJkZw0IDgunyxCBc1IpLK+uPbMxroYKnfJn8dGSH 1/kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=7BxS2xXT1chsYm3tVDETr/9nBuiwdQJK5hypDU99THI=; b=Bp8AVydiPUi4DIPAT5bVsGEn0Aomxd9gc11CMcaGiq/g/akRVxSRorjsQqtWtrccMj KbLJsIrFs8BarFtKg3lz4WWU59dhQTsDqcP09C2PzynT5JWd330gBYQV1eSR2uNcSTFT OmuFs+2CH6aLy2ahuY+KB00RbO1C0ZKte1gxUjsK9tZvZsZoAAH5shAspQ+jDnx6oNCe obXoEV/TpKKG/DyIPxjtW9SI0p2pUKrpY9AghBjsKcYUhYmu082FdH4u6ORIBFRqDRRd bTdJ0FnIlkhcvBaUlsTs0xYmpEzYWMtoqwgvD+gaKAVOHwcea5x8w6VXyKAhKUqvw9az IEcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=2ESiUcIj; dkim=pass header.i=@codewreck.org header.s=2 header.b=2ESiUcIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a1709061e4500b00932e6d5bd8asi5062370ejj.980.2023.04.02.11.38.03; Sun, 02 Apr 2023 11:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=2ESiUcIj; dkim=pass header.i=@codewreck.org header.s=2 header.b=2ESiUcIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbjDBSXU (ORCPT + 99 others); Sun, 2 Apr 2023 14:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjDBSXS (ORCPT ); Sun, 2 Apr 2023 14:23:18 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 851E35BAD; Sun, 2 Apr 2023 11:23:16 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id D13E7C009; Sun, 2 Apr 2023 20:23:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1680459792; bh=7BxS2xXT1chsYm3tVDETr/9nBuiwdQJK5hypDU99THI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2ESiUcIjaVjFbuzagVRTMP0/Qms1EKNYqClc+Kfw+fkoRxhKsRysK4qlPIfOQrgmQ kK0nJyY8Fplqkjl9ChBl/7J1OOsfu0CYWya/pveV7CAzCTORtu2AhL8ARjCVBKPRrF qp4IJjZpkIcmmu41CQ34rm+KJlMeSFB9dzo2ym6pCeq3I4Fj5xEf6dRUrHb3/cEaLR UtLJBjT9LN6uRi7+Dfk+EWBuf7rxH+2dN0kYDxFRnRQ2+AQHdctqoS1QRi7xyAo1Va fPmIC/IPK0gDT0Nz6rdOhdkk6PqH9HD4uQi6bvcKjUEq38F/4SJEO6qn4wV4RFei9S ySJpFYIReFV+Q== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from odin (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 4DCFEC009; Sun, 2 Apr 2023 20:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1680459792; bh=7BxS2xXT1chsYm3tVDETr/9nBuiwdQJK5hypDU99THI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2ESiUcIjaVjFbuzagVRTMP0/Qms1EKNYqClc+Kfw+fkoRxhKsRysK4qlPIfOQrgmQ kK0nJyY8Fplqkjl9ChBl/7J1OOsfu0CYWya/pveV7CAzCTORtu2AhL8ARjCVBKPRrF qp4IJjZpkIcmmu41CQ34rm+KJlMeSFB9dzo2ym6pCeq3I4Fj5xEf6dRUrHb3/cEaLR UtLJBjT9LN6uRi7+Dfk+EWBuf7rxH+2dN0kYDxFRnRQ2+AQHdctqoS1QRi7xyAo1Va fPmIC/IPK0gDT0Nz6rdOhdkk6PqH9HD4uQi6bvcKjUEq38F/4SJEO6qn4wV4RFei9S ySJpFYIReFV+Q== Received: from localhost (odin [local]) by odin (OpenSMTPD) with ESMTPA id 4020d9b3; Sun, 2 Apr 2023 18:23:07 +0000 (UTC) Date: Mon, 3 Apr 2023 03:22:52 +0900 From: asmadeus@codewreck.org To: Christian Schoenebeck Cc: Eric Van Hensbergen , v9fs-developer@lists.sourceforge.net, Eric Van Hensbergen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Layton Subject: Re: [PATCH] fs/9p: Add new options to Documentation Message-ID: References: <3443961.DhAEVoPbTG@silver> <5898218.pUKYPoVZaQ@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5898218.pUKYPoVZaQ@silver> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christian Schoenebeck wrote on Sun, Apr 02, 2023 at 04:07:51PM +0200: > > So, mapping of existing (deprecated) legacy modes: > > - none (obvious) write_policy=writethrough > > - *readahead -> cache=file cache_validate_open write_policy=writethrough > > - mmap -> cache=file cache_validate=open write_policy=writeback > > Mmm, why is that "file"? To me "file" sounds like any access to files is > cached, whereas cache=mmap just uses the cache if mmap() was called, not for > any other file access. The semantics are slightly different but I don't think anyone would mind; mmap was introduced as a way of having minimal caching but file caching + /sys/class/bdi/9p*/max_bytes to 0 should be almost identical once we've made sure our cache code sends bigger than 4k writes at a time (I *think* that's still a problem and there was netfs work in the ways, but you'd have noticed?) -- Dominique