Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4882478rwe; Mon, 17 Apr 2023 21:35:26 -0700 (PDT) X-Google-Smtp-Source: AKy350YznZ//s8MJWSGh/YehGscdXecFtVeXo0xMoP4FBLz+26YQsV/2iLFqY3BhziTC94B8GuQ8 X-Received: by 2002:a05:6a20:4288:b0:ef:ecaf:ff6d with SMTP id o8-20020a056a20428800b000efecafff6dmr5504746pzj.12.1681792525853; Mon, 17 Apr 2023 21:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681792525; cv=none; d=google.com; s=arc-20160816; b=ZFhHyO+Wfzkl+k2uagJLdqER0Ut98iqMW8GWHUlxcE5B2J6z4TFJKEpm/2FkZgHxSi FlPS5wotG6HVl5maNmei65QqPXysKfAEbeHfkjldPAv86VN5Va6e3a5xdM9iFOJkjfUt +t+qP14zr0O6CjjBQOG4IsBE9xpVe4G3Osqmfrg9omtfndgTi8SS8mVJB/ZzXzDr8sW7 ZDd7o+UIh0kn414uinBUfBQBKgX5BkrhnGUkBP684567GdMHczACmdFqvNZR6zmkMpUb kfnPd32jCTj9zyfiStanzYv1pscgtvjwZkIQ6Rn4zoreObtPEaYSDdv4deMOhgQplVrJ 1W6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=8t7utIVn1NZcTfXhQfNQOixZnM/sHw7ItMZQq+M8aPc=; b=lPEzaUOTY42KGPr+tq6J8LQp7pg7Wjq237QGRmzR1UryFG1RCx5200peclRV6i+jQo Ao9R23NGvIRIVCt2peVkPNmp+YDNGit/wtvPY8VE3+ipcCOybFeuEoQl7/XyvsMUxfwD Zw9/7wdWoUPYsQXS3ONxcd+ibS7oXFn93BPpFY/Kk5CxXWiiUSrNnN3CoCP+d/iQSO9C gp2mGhUWyCWv2SmlYx1Ey5vg6ZVkjIrz4SkJLkS/f9796KG6y1521Cadw9fdCR5AHT+9 Q3Z5Z0QFmwtH/r09VwRT0JZ58zUZ5cerM56BGf1kKt7R1HTewfxzCo/cAug+btnycXYo ubvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="Cz9/Rr66"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0051b65f4d94asi11097804pgh.484.2023.04.17.21.35.13; Mon, 17 Apr 2023 21:35:25 -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=@google.com header.s=20221208 header.b="Cz9/Rr66"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbjDREbe (ORCPT + 99 others); Tue, 18 Apr 2023 00:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjDREbc (ORCPT ); Tue, 18 Apr 2023 00:31:32 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2C05E42 for ; Mon, 17 Apr 2023 21:31:31 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id b10so233144ybk.9 for ; Mon, 17 Apr 2023 21:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681792291; x=1684384291; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=8t7utIVn1NZcTfXhQfNQOixZnM/sHw7ItMZQq+M8aPc=; b=Cz9/Rr66vJy1JpuaPb/lZt+BqnIAULlsh/bMEJz7lecp7j2/VqIYFP9lYDAXo/GSOe jXegQSsMedSgQT77EeJ2KmfvMzZN6Ljv1+TN3WRsPIfy+i2b79tjjoDydxB2muV0m95F TkPvSFKMkzafvTvvY78d+3eTyLdggNl0pJ/8IVftS/PK5rnOzysZHuDvNz2HHgSEmlTM IFQJtX1mLDjgI+uRRoYmhs70M5a/m3OoBKLn7JyDtPchNoL/b66Hu6xw8kf3RtaIiqXk vwbDlDQqWGfOs1MddFqSn7e1o1bZyRAEkBxq9S98SAthePpj17XI8RVCikHwVaPs+HYc nxOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681792291; x=1684384291; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8t7utIVn1NZcTfXhQfNQOixZnM/sHw7ItMZQq+M8aPc=; b=MbB1I3WJ3TiUvOwNdIl8xTR56aGiGpxJNlKcq0VnHXcCBMRIAlw2GFfZPuzpAoPOTM jnOrp7qRS5GgsKnCBqtwz0XMNV0aIbkkkdhA+crb67gH4fYoPq7UVo4K13CwgZgMJVUs QVrI61PiU3KtUpLIWHj65rK9rs4835nQTAY2uBaHjdrGqXSeVsUVQgXGgkQ2iy/rf6t0 oZM2tkVdrUxaR/CCXfFVkeg/Yh7tai+jUIy6AH9CE59lSqBTF6NsqlaMViFIWRMS6u1g DvKoAnMhCSmi4rfqtve8XnfhRlOj/nHotPM5rPoOkVTyUGM0nNWvNzbjskVXkl4aZQWR C0jw== X-Gm-Message-State: AAQBX9fwjzjC5gwQK2FOAFuEc9lHTRIc3cRA39XdX0lu0Zwa2wIbN5Xm ONRC2RsIWXWSlwAHLrZsG6xXbQ== X-Received: by 2002:a25:e706:0:b0:b8f:44bc:c4f9 with SMTP id e6-20020a25e706000000b00b8f44bcc4f9mr15495368ybh.32.1681792290910; Mon, 17 Apr 2023 21:31:30 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id 185-20020a2506c2000000b00b8f2d726471sm3464611ybg.3.2023.04.17.21.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 21:31:30 -0700 (PDT) Date: Mon, 17 Apr 2023 21:31:20 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Luis Chamberlain cc: hughd@google.com, akpm@linux-foundation.org, willy@infradead.org, brauner@kernel.org, linux-mm@kvack.org, p.raghav@samsung.com, da.gomez@samsung.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] tmpfs: add the option to disable swap In-Reply-To: <20230309230545.2930737-1-mcgrof@kernel.org> Message-ID: <3382819f-4a4-8622-5642-78c03ecfb878@google.com> References: <20230309230545.2930737-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Mar 2023, Luis Chamberlain wrote: > I'm doing this work as part of future experimentation with tmpfs and the > page cache, but given a common complaint found about tmpfs is the > innability to work without the page cache I figured this might be useful > to others. It turns out it is -- at least Christian Brauner indicates > systemd uses ramfs for a few use-cases because they don't want to use > swap and so having this option would let them move over to using tmpfs > for those small use cases, see systemd-creds(1). Thanks for your thorough work on tmpfs "noswap": seems well-received by quite a few others, that's good. I've just a few comments on later patches (I don't understand why you went into those little rearrangements at the start of shmem_writepage(), but they seem harmless so I don't object), but wanted to ask here: You say "a common complaint about tmpfs is the inability to work without the page cache". Ehh? I don't understand that at all, and have never heard such a complaint. It doesn't affect the series itself (oh, Andrew has copied that text into the first patch), but please illuminate! Thanks, Hugh