From patchwork Wed Dec 2 01:09:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11944455 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E102C64E7A for ; Wed, 2 Dec 2020 01:09:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6FBDA2158C for ; Wed, 2 Dec 2020 01:09:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FBDA2158C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BBC3E6B005C; Tue, 1 Dec 2020 20:09:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B6C518D0002; Tue, 1 Dec 2020 20:09:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA8EF8D0001; Tue, 1 Dec 2020 20:09:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0061.hostedemail.com [216.40.44.61]) by kanga.kvack.org (Postfix) with ESMTP id 90FD36B005C for ; Tue, 1 Dec 2020 20:09:47 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4C4D61EFD for ; Wed, 2 Dec 2020 01:09:47 +0000 (UTC) X-FDA: 77546560014.30.lead20_0905cbb273af Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 2E8DC180B3AA7 for ; Wed, 2 Dec 2020 01:09:47 +0000 (UTC) X-HE-Tag: lead20_0905cbb273af X-Filterd-Recvd-Size: 3699 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Wed, 2 Dec 2020 01:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=GLS29JPliofdLClDLIcf/EjxRzDsiF9nerluyizgtuo=; b=nW+s9po3Z7UDGR5/Eq137VKbvP i+P+unnI2oRphD4NjgwgeKLrldBbiIYvQIUfotliPLPbgjyP6D6CjgY13i4CDerEvW5RggWOg/Hiw tvo5pfaXZEp9hTj5moNuTLBJOFJC0db9AnErrTVidHo5a517R2xzZcwrSMT1YpzhhmRlAzcm9UvrD m6ucI4pEimy4x+hLo8o2NByME/Fk0j6efPHTYpl7NwPG87QJVv0L9xWg7Wu3HztuKeTcEvGQo9Cxr mB/p7sPsLBXCZS96xHvl8/RUoMWQcD8gYlXl6J3ifvJQsxYg8kj7y94YzMo1p8b36dh1zuXeC6bBq H3NM/k/w==; Received: from [2601:1c0:6280:3f0::1494] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkGeH-0000Qn-Su; Wed, 02 Dec 2020 01:09:40 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Andrew Morton , linux-mm@kvack.org, Hugh Dickins , Chris Down Subject: [PATCH] tmpfs: fix Documentation nits Date: Tue, 1 Dec 2020 17:09:34 -0800 Message-Id: <20201202010934.18566-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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: Fix a typo, punctuation, use uppercase for CPUs, and limit tmpfs to keeping only its files in virtual memory (phrasing). Signed-off-by: Randy Dunlap Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: Hugh Dickins Cc: Chris Down Acked-by: Hugh Dickins --- Documentation/filesystems/tmpfs.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- linux-next-20201201.orig/Documentation/filesystems/tmpfs.rst +++ linux-next-20201201/Documentation/filesystems/tmpfs.rst @@ -4,7 +4,7 @@ Tmpfs ===== -Tmpfs is a file system which keeps all files in virtual memory. +Tmpfs is a file system which keeps all of its files in virtual memory. Everything in tmpfs is temporary in the sense that no files will be @@ -35,7 +35,7 @@ tmpfs has the following uses: memory. This mount does not depend on CONFIG_TMPFS. If CONFIG_TMPFS is not - set, the user visible part of tmpfs is not build. But the internal + set, the user visible part of tmpfs is not built. But the internal mechanisms are always present. 2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for @@ -50,7 +50,7 @@ tmpfs has the following uses: This mount is _not_ needed for SYSV shared memory. The internal mount is used for that. (In the 2.3 kernel versions it was necessary to mount the predecessor of tmpfs (shm fs) to use SYSV - shared memory) + shared memory.) 3) Some people (including me) find it very convenient to mount it e.g. on /tmp and /var/tmp and have a big swap partition. And now @@ -83,7 +83,7 @@ If nr_blocks=0 (or size=0), blocks will if nr_inodes=0, inodes will not be limited. It is generally unwise to mount with such options, since it allows any user with write access to use up all the memory on the machine; but enhances the scalability of -that instance in a system with many cpus making intensive use of it. +that instance in a system with many CPUs making intensive use of it. tmpfs has a mount option to set the NUMA memory allocation policy for