aboutsummaryrefslogtreecommitdiff
path: root/lib/percpu-refcount.c
diff options
context:
space:
mode:
authorGravatar David Hildenbrand <david@redhat.com> 2023-01-13 18:10:13 +0100
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-02-02 22:33:08 -0800
commit0a9ad8273ff4643dd50ff6b3ec991ab270e87a89 (patch)
treee9beec3b782f365ca7063c6a772fe3adfa7e3bb5 /lib/percpu-refcount.c
parentmips/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE (diff)
downloadlinux-0a9ad8273ff4643dd50ff6b3ec991ab270e87a89.tar.gz
linux-0a9ad8273ff4643dd50ff6b3ec991ab270e87a89.tar.bz2
linux-0a9ad8273ff4643dd50ff6b3ec991ab270e87a89.zip
nios2/mm: refactor swap PTE layout
nios2 disables swap for a good reason: it doesn't even provide sufficient type bits as required by core MM. However, swap entries are nowadays also used for other purposes (migration entries, PTE markers, HWPoison, ...), and accidential use could be problematic. Let's properly use 5 bits for the swap type and document the layout. Bits 26--31 should get ignored by hardware completely, so they can be used. Link: https://lkml.kernel.org/r/20230113171026.582290-14-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/percpu-refcount.c')
0 files changed, 0 insertions, 0 deletions