From patchwork Wed Sep 20 23:50:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 13393567 Return-Path: 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 4864ECD4937 for ; Wed, 20 Sep 2023 23:51:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9EE56B01F5; Wed, 20 Sep 2023 19:51:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4F276B01F7; Wed, 20 Sep 2023 19:51:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3F066B01F8; Wed, 20 Sep 2023 19:51:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A0DFE6B01F5 for ; Wed, 20 Sep 2023 19:51:00 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 7570A1CA254 for ; Wed, 20 Sep 2023 23:51:00 +0000 (UTC) X-FDA: 81258623880.26.0DB53D4 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf04.hostedemail.com (Postfix) with ESMTP id 71F6B40002 for ; Wed, 20 Sep 2023 23:50:57 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=gZWIxfyx; spf=none (imf04.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695253857; h=from:from:sender: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:references:dkim-signature; bh=tlgdA+9zRCeEqqQqdnsCAMTZo8+aT2RUqSoMURIS/L0=; b=DWzjVeqixiPd66AUrw+bFfBG0DXJZtMnSPX0llzSPIBttrFAapBKFW7SklFyw3+9RMpjAt BM/xmbQEXN9V+vNsBKGCq1pnmJO7YR5b/NMHCDhNKZqzS3gqIBWxkFpIy/1XDA/54uQ/dz UUzYEiIPGxFtb32un7oMd5Sqjws9Btw= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=gZWIxfyx; spf=none (imf04.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695253857; a=rsa-sha256; cv=none; b=1JnpyLRORYGjiTFAsvly29WfX8cDL3AFc7fRkGI7yQjE7xz21QaLG/NpCv3fpr93RBp6Na b6agB/oaFnXqVSnwYhUrfqCN2EL3jmsyD5HFGPMalxMzb4bHpPR9uwPIYh9lHihnjX3yKX zxWfqP1ApPyX2DZsj8olfvUR0jfl/kg= 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 X-Rspamd-Queue-Id: 71F6B40002 X-Rspam-User: X-Stat-Signature: z1p68bqrh4gr8ck3okkhqpfapf9ntwdq X-Rspamd-Server: rspam01 X-HE-Tag: 1695253857-970138 X-HE-Meta: U2FsdGVkX19d97h2pYm+uJ/dd6nQj4wsHcuHkS1YzjkJyCYZqOS4Nv7fNY3yeEl0us4Q40Qcx+T3X9HXyF1UsW+dAqPnWsgO94bxn5ALqVBUJgz7XFKTxogO4bjgSgeEIi4GR8e25jhE+x+5nESpU1VWYWvLmPwkOUbsyaOYUo7dRC2OGeXEsOHOZSRu584c0Y2j4UBXxYDa8cZwMbr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UsEL3W5eHB2iCjzQiPf0vBUwB5uPHlrjn1d6b7I5BGprUo9/o4+5JwqyFvTW+dhS5JAmXzocYHp8rsEpCTW7jIxLzT4uEsnmW4JUQK8zzo3j4lgheT9xle2cfiz5oKSYdjrZBRRjyZp1RPpmQ3nRC399AhUBLTB2SfUnT8qz4oeV9ZB6jRkw== 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 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