We are both wrong to a degree, but you are more correct than I was.
According to the docs[0]:
tmpfs ... is able to swap unneeded pages out to swap
space, if swap was enabled for the tmpfs mount.
So `tmpfs` does not unconditionally use swap, but can use it if possible. What I was thinking about is `ramfs`, which doesn't support swap, but that is not the topic of the question to which I replied.
We are both wrong to a degree, but you are more correct than I was.
According to the docs[0]:
So `tmpfs` does not unconditionally use swap, but can use it if possible. What I was thinking about is `ramfs`, which doesn't support swap, but that is not the topic of the question to which I replied.0 - https://www.kernel.org/doc/html/latest/filesystems/tmpfs.htm...