Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1841284rdb; Thu, 21 Sep 2023 00:35:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEjjo5Xl/ZcPZABX9MjZEM7T5aFPnDHHfP8GBlrKPThzH9rKtfc562nWxcPVV5H3O8hTtg X-Received: by 2002:a05:6a20:8f21:b0:156:851e:b167 with SMTP id b33-20020a056a208f2100b00156851eb167mr5348850pzk.44.1695281710147; Thu, 21 Sep 2023 00:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695281710; cv=none; d=google.com; s=arc-20160816; b=rWpsApa5FZehZjyZFBDEanAC9PPIguabQ8hPVqD87LyQsI6yYaJMv2nFOHDwYVp8MC +K1kCdCzpjpdsMTehLvAlb1BDMdhilp2GzwDLJzN8Sbbr5DZP15vicobf+1MkAUvKc/i R+nStBKLs+cVXCEVvMwDc3U782WSIFmNlMU2125MbiWeEmx9uTsGk4qP0qx7uQFmOt8n vfhFZrMmmulZYygsmMB+uUKgbUisUmag4PH1dH+4LOS/ToWQU3Jacdd9ScM5V97XY7hG kMeyNnHX19FY54HVj1rnWQmc0TyDEU8N1SOhUBaTXDKo9S7ZCVIpWE8mLUtYubXZ4LOC dfzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tlgdA+9zRCeEqqQqdnsCAMTZo8+aT2RUqSoMURIS/L0=; fh=/z54PdL9LNWJqlk2MV7ZM8/CTLgHr3/YCq8Z+8r0cJo=; b=j5+jge9RF85jZnBbLrvM3V7Ebfhw5afwwf1iEMHKGDYHYxvUKj7hMlTxEIM8axoj/i NWZ5eZwz+dlzg/Cr9cY3q3+aXnwDGi9H2IaYBZrRGcr6Gju77OapLHjMEkVyqKuGOjy5 ha5ICEu7ncUHpxUGtEpKULr8QIdpkChvSu0cTOUfWEXbWIILUgKR37dZhULrIsNas8/O QbaU6qd09HR2ixZphnSs7rhpjrIa46v9NzCbQ3ColpeRPpr3f0D8fwEo+rhZp5MfXd9Z IyLWx3adDigXBE3cW7MgcyHSWondzSYs8FMvy3kqxNK8TuYY0vLAF3CIWWjaAM+/40Cm 4ZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gZWIxfyx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k21-20020aa788d5000000b00690feb23e3esi947842pff.17.2023.09.21.00.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 00:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=gZWIxfyx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4163B82295C2; Wed, 20 Sep 2023 16:53:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbjITXuo (ORCPT + 99 others); Wed, 20 Sep 2023 19:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjITXum (ORCPT ); Wed, 20 Sep 2023 19:50:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D1EDE; Wed, 20 Sep 2023 16:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=tlgdA+9zRCeEqqQqdnsCAMTZo8+aT2RUqSoMURIS/L0=; b=gZWIxfyxxYZn8qx/ODs6UihV7w yCc0UiMKZgKV21JT2OoezTRYQ6ZGJcTL+LjYU5Kl/ydpycLgWmI0rN9OxmzJ0tDrNFETenW0qyjAZ jZcuflWPs1JomA/GzhSRDQjsMUOOk4z+gYkPVnUKU8pcav2geuBrihQwvqfcwFuJeC/FqrHCdIOGa RgflSoRRiawgM6syJ0tqe9jN/M961ZNwsACj5a4lzDKQPBdWfDf/FHcRqpKY6e5OEA2jBFyQFLQkO QUCkB3MRGO3k5nPhIwYDYBdShihgvRvYDf0SO0+mbkfbGdPh0ZXroFXiWk9OQFHuS2fEAoJtTecGO cWI7OljA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qj6xb-004UYT-1u; Wed, 20 Sep 2023 23:50:23 +0000 From: Luis Chamberlain To: alx@kernel.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org Cc: hughd@google.com, p.raghav@samsung.com, da.gomez@samsung.com, rohan.puri@samsung.com, rpuri.linux@gmail.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, mcgrof@kernel.org, patches@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] tmpfs.5: extend with new noswap documentation Date: Wed, 20 Sep 2023 16:50:22 -0700 Message-Id: <20230920235022.1070752-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 16:53:58 -0700 (PDT) Linux commit 2c6efe9cf2d7 ("shmem: add support to ignore swap") merged as of v6.4 added support to disable swap for tmpfs mounts. This extends the man page to document that. Signed-off-by: Luis Chamberlain --- changes on v2: - Use semantic newlines man5/tmpfs.5 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man5/tmpfs.5 b/man5/tmpfs.5 index 5274e632d6fd..047a17a78ee0 100644 --- a/man5/tmpfs.5 +++ b/man5/tmpfs.5 @@ -103,6 +103,12 @@ suffixes like .BR size , but not a % suffix. .TP +.BR noswap "(since Linux 6.4)" +.\" commit 2c6efe9cf2d7841b75fe38ed1adbd41a90f51ba0 +Disables swap. +Remounts must respect the original settings. +By default swap is enabled. +.TP .BR mode "=\fImode\fP" Set initial permissions of the root directory. .TP -- 2.39.2