linux-stable/arch
David Hildenbrand 731351d1bd ia64: perfmon: don't mark buffer pages as PG_reserved
In the old days, remap_pfn_range() required pages to be marked as
PG_reserved, so they would e.g.  never get swapped out.  This was
required for special mappings.  Nowadays, this is fully handled via the
VMA (VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP inside
remap_pfn_range() to be precise).  PG_reserved is no longer required but
only a relic from the past.

So only architecture specific MM handling might require it (e.g.  to
detect them as MMIO pages).  As there are no architecture specific
checks for PageReserved() apart from MCA handling in ia64code, this can
go.  Use simple vzalloc()/vfree() instead.

Note that before calling vzalloc(), size has already been aligned to
PAGE_SIZE, no need to align again.

Link: http://lkml.kernel.org/r/20190114125903.24845-9-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-05 21:07:19 -08:00
..
alpha mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
arc ARCv2: don't assume core 0x54 has dual issue 2019-02-21 14:53:36 -08:00
arm Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-03-05 09:09:55 -08:00
arm64 arm64: kdump: no need to mark crashkernel pages manually PG_reserved 2019-03-05 21:07:19 -08:00
c6x arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
csky get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
h8300 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
hexagon arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
ia64 ia64: perfmon: don't mark buffer pages as PG_reserved 2019-03-05 21:07:19 -08:00
m68k m68k/mm: use __ClearPageReserved() 2019-03-05 21:07:18 -08:00
microblaze get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
mips Here's the main MIPS pull request for v5.1: 2019-03-05 11:28:25 -08:00
nds32 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
nios2 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
openrisc get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
parisc Merge branch 'parisc-5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2019-03-05 11:17:23 -08:00
powerpc powerpc/vdso: don't clear PG_reserved 2019-03-05 21:07:18 -08:00
riscv riscv/vdso: don't clear PG_reserved 2019-03-05 21:07:18 -08:00
s390 s390/vdso: don't clear PG_reserved 2019-03-05 21:07:18 -08:00
sh sh: remove nargs from __SYSCALL 2019-03-05 21:07:13 -08:00
sparc mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
um a.out: remove core dumping support 2019-03-05 10:00:35 -08:00
unicore32 arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
x86 mm: update ptep_modify_prot_commit to take old pte value as arg 2019-03-05 21:07:18 -08:00
xtensa Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-03-05 08:26:13 -08:00
.gitignore
Kconfig jump_label: move 'asm goto' support test to Kconfig 2019-01-06 09:46:51 +09:00