Commit f38d58b7 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

tmpfs: fix Documentation nits

Fix a typo, punctuation, use uppercase for CPUs, and limit
tmpfs to keeping only its files in virtual memory (phrasing).

Link: https://lkml.kernel.org/r/20201202010934.18566-1-rdunlap@infradead.orgSigned-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarHugh Dickins <hughd@google.com>
Cc: Chris Down <chris@chrisdown.name>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 30e6a51d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Tmpfs 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 Everything in tmpfs is temporary in the sense that no files will be
...@@ -35,7 +35,7 @@ tmpfs has the following uses: ...@@ -35,7 +35,7 @@ tmpfs has the following uses:
memory. memory.
This mount does not depend on CONFIG_TMPFS. If CONFIG_TMPFS is not 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. mechanisms are always present.
2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
...@@ -50,7 +50,7 @@ tmpfs has the following uses: ...@@ -50,7 +50,7 @@ tmpfs has the following uses:
This mount is _not_ needed for SYSV shared memory. The internal This mount is _not_ needed for SYSV shared memory. The internal
mount is used for that. (In the 2.3 kernel versions it was 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 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 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 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 not be limited in that instance; ...@@ -83,7 +83,7 @@ If nr_blocks=0 (or size=0), blocks will not be limited in that instance;
if nr_inodes=0, inodes will not be limited. It is generally unwise to 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 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 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 tmpfs has a mount option to set the NUMA memory allocation policy for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment