linux/arch/x86
Lorenzo Stoakes 93d23dff8e mm: use linear_page_[index, delta]() consistently
There are a number of places where we open code what linear_page_index()
and linear_page_delta() calculate.

Replace this code with the appropriate functions for consistency.

No functional change intended.

Link: https://lore.kernel.org/20260710-b4-pre-scalable-cow-v2-21-2a5aa403d977@kernel.org
Signed-off-by: Lorenzo Stoakes <ljs@kernel.org>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>	[DRM]
Acked-by: Kai Huang <kai.huang@intel.com> # for sgx
Reviewed-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Pedro Falcato <pfalcato@suse.de> # for mm
Reviewed-by: Ackerley Tng <ackerleytng@google.com>	[guest_memfd]
Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Cc: David Hildenbrand (Arm) <david@kernel.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: SJ Park <sj@kernel.org>
Cc: Liam R. Howlett (Oracle) <liam@infradead.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-08-04 19:19:01 -07:00
..
boot x86/boot/compressed: Disable jump tables 2026-07-23 10:06:58 +02:00
coco - Remove redundant GHCB initialization guards in the SEV page state and SVSM 2026-06-16 05:57:30 +05:30
configs x86/64/defconfig: Add CONFIG_IRQ_REMAP 2026-03-10 19:01:37 +01:00
crypto This update includes the following changes: 2026-04-15 15:22:26 -07:00
entry - Remove redundant GHCB initialization guards in the SEV page state and SVSM 2026-06-16 05:57:30 +05:30
events perf/x86/intel: use higher-level allocator API 2026-07-30 19:40:42 -07:00
hyperv hyperv-next for v7.2-rc1 2026-06-22 08:06:13 -07:00
ia32
include mm: rename uffd-wp PTE accessors to uffd 2026-08-04 19:18:36 -07:00
kernel mm: use linear_page_[index, delta]() consistently 2026-08-04 19:19:01 -07:00
kvm KVM: VMX: use higher-level allocator API 2026-07-30 19:40:42 -07:00
lib x86: Remove arch-specific strncpy() implementation 2026-06-18 16:37:13 -07:00
mm x86/mm: remove CONFIG_HAVE_BOOTMEM_INFO_NODE 2026-08-04 19:18:42 -07:00
net bpf: Restrict JIT predictor flush to cBPF 2026-07-01 10:33:38 +02:00
pci treewide: Explicitly include the x86 CPUID headers 2026-05-06 14:29:59 +02:00
platform gpio fixes for v7.2-rc1 2026-06-25 09:33:23 -07:00
power PM: hibernate: x86: Remove inclusion of crypto/hash.h 2026-03-19 16:13:32 +01:00
purgatory
ras
realmode x86/realmode: Make the location of the trampoline configurable 2026-05-28 20:01:25 +00:00
tools x86/vdso: Prepare for robust futex unlock support 2026-06-03 11:38:52 +02:00
um Mostly cleanups and small things, notably: 2026-04-20 16:36:46 -07:00
video x86/video: Only fall back to vga_default_device() without screen info 2026-07-07 08:14:55 -07:00
virt x86/virt: use higher-level allocator API 2026-07-30 19:40:42 -07:00
xen x86/Xen: correct commentary and parameter naming of xen_exchange_memory() 2026-07-02 08:14:47 +02:00
.gitignore
Kbuild
Kconfig mm: decouple protnone helpers from CONFIG_NUMA_BALANCING 2026-08-04 19:18:36 -07:00
Kconfig.assembler
Kconfig.cpu - The usual pile of cleanups and fixlets the cat dragged in 2026-06-16 05:41:22 +05:30
Kconfig.cpufeatures x86/cpu: Make CONFIG_X86_CX8 unconditional 2026-06-11 10:25:40 +02:00
Kconfig.debug
Makefile x86/cpu updates for v7.2: 2026-06-15 15:25:17 +05:30
Makefile_32.cpu x86/cpu, cpufreq: Remove AMD ELAN support 2026-05-08 07:34:03 +02:00
Makefile.um rust: kasan/kbuild: fix rustc-option when cross-compiling 2026-05-26 09:44:54 +02:00