Go to file
Chris von Recklinghausen 6d3cc13879 shmem: add support to ignore swap
JIRA: https://issues.redhat.com/browse/RHEL-27741

commit 2c6efe9cf2d7841b75fe38ed1adbd41a90f51ba0
Author: Luis Chamberlain <mcgrof@kernel.org>
Date:   Thu Mar 9 15:05:45 2023 -0800

    shmem: add support to ignore swap

    In doing experimentations with shmem having the option to avoid swap
    becomes a useful mechanism.  One of the *raves* about brd over shmem is
    you can avoid swap, but that's not really a good reason to use brd if we
    can instead use shmem.  Using brd has its own good reasons to exist, but
    just because "tmpfs" doesn't let you do that is not a great reason to
    avoid it if we can easily add support for it.

    I don't add support for reconfiguring incompatible options, but if we
    really wanted to we can add support for that.

    To avoid swap we use mapping_set_unevictable() upon inode creation, and
    put a WARN_ON_ONCE() stop-gap on writepages() for reclaim.

    Link: https://lkml.kernel.org/r/20230309230545.2930737-7-mcgrof@kernel.org
    Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
    Acked-by: Christian Brauner <brauner@kernel.org>
    Tested-by: Xin Hao <xhao@linux.alibaba.com>
    Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Adam Manzanares <a.manzanares@samsung.com>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Pankaj Raghav <p.raghav@samsung.com>
    Cc: Yosry Ahmed <yosryahmed@google.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2024-04-30 07:00:13 -04:00
Documentation shmem: add support to ignore swap 2024-04-30 07:00:13 -04:00
LICENSES
arch x86/mm/pat: clear VM_PAT if copy_p4d_range failed 2024-04-30 07:00:04 -04:00
block Merge: Updates for powerpc smp nr_cpu_ids 2024-04-22 12:47:54 +00:00
certs integrity: PowerVM support for loading third party code signing keys 2024-02-05 19:05:32 +08:00
crypto Merge: crypto: dh - implement FIPS PCT and a panic on a failure 2024-03-20 13:38:07 -03:00
drivers tee: Remove call to get_kernel_pages() 2024-04-29 14:33:20 -04:00
fs mm,jfs: move write_one_page/folio_write_one to jfs 2024-04-30 07:00:11 -04:00
include shmem: add support to ignore swap 2024-04-30 07:00:13 -04:00
init stack: Introduce CONFIG_RANDOMIZE_KSTACK_OFFSET 2024-04-30 06:59:58 -04:00
io_uring eventfd: simplify eventfd_signal_mask() 2024-04-15 19:14:00 +02:00
ipc ipc/shm: introduce new do_vma_munmap() to munmap 2024-04-29 14:33:14 -04:00
kernel sysctl: remove max_extfrag_threshold 2024-04-30 07:00:01 -04:00
lib mm, printk: introduce new format %pGt for page_type 2024-04-30 07:00:05 -04:00
mm shmem: add support to ignore swap 2024-04-30 07:00:13 -04:00
net mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
redhat zsmalloc: make zspage chain size configurable 2024-04-29 14:33:11 -04:00
samples samples: add first Rust examples 2024-04-30 07:00:01 -04:00
scripts kasan: treat meminstrinsic as builtins in uninstrumented files 2024-04-29 14:33:25 -04:00
security mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
sound mm: replace vma->vm_flags direct modifications with modifier calls 2024-04-29 14:33:17 -04:00
tools mm: discard __GFP_ATOMIC 2024-04-29 14:33:09 -04:00
usr shmbuf.h: add asm/shmbuf.h to UAPI compile-test coverage 2024-03-20 09:42:28 -04:00
virt eventfd: simplify eventfd_signal() 2024-04-15 19:14:00 +02:00
.clang-format cpumask: re-introduce constant-sized cpumask optimizations 2024-03-20 09:42:41 -04:00
.cocciconfig
.get_maintainer.conf
.get_maintainer.ignore
.gitattributes
.gitignore kbuild: Cleanup DT Overlay intermediate files as appropriate 2024-03-15 14:47:39 -05:00
.gitlab-ci.yml gitlab-ci: allow coverage template to disable debug builds again 2024-04-09 14:39:33 +02:00
.mailmap mailmap: remove my redhat.com address from RHEL9's .mailmap file 2022-09-26 09:34:38 -04:00
COPYING
CREDITS MAINTAINERS: Orphan Cadence PCIe IP 2024-02-25 08:39:32 -07:00
Kbuild
Kconfig
Kconfig.redhat redhat: kABI: add missing RH_KABI_SIZE_ALIGN_CHECKS Kconfig option 2024-01-12 14:27:16 +01:00
MAINTAINERS mm: add tracepoints to ksm 2024-04-30 07:00:04 -04:00
Makefile redhat: version two of Makefile.rhelver tweaks 2024-04-09 19:15:12 -04:00
Makefile.rhelver [redhat] kernel-5.14.0-444.el9 2024-04-26 10:03:10 -03:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.