linux_dsm_epyc7002/arch/sparc/mm
Matthew Wilcox (Oracle) bbb7c059fd sparc: fix handling of page table constructor failure
[ Upstream commit 06517c9a336f4c20f2064611bf4b1e7881a95fe1 ]

The page has just been allocated, so its refcount is 1.  free_unref_page()
is for use on pages which have a zero refcount.  Use __free_page() like
the other implementations of pte_alloc_one().

Link: https://lkml.kernel.org/r/20201125034655.27687-1-willy@infradead.org
Fixes: 1ae9ae5f7d ("sparc: handle pgtable_page_ctor() fail")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:55 +01:00
..
extable.c
fault_32.c sparc32: propagate the calling conventions change down to __csum_partial_copy_sparc_generic() 2020-08-20 15:45:19 -04:00
fault_64.c mm/sparc64: use general page fault accounting 2020-08-12 10:58:04 -07:00
highmem.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hugetlbpage.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
hypersparc.S
init_32.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
init_64.c sparc: fix handling of page table constructor failure 2020-12-30 11:53:55 +01:00
init_64.h
io-unit.c dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
iommu.c dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
leon_mm.c
Makefile
mm_32.h
srmmu_access.S
srmmu.c arch/sparc/mm/srmmu.c: fix build 2020-06-10 10:35:28 -07:00
swift.S
tlb.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
tsb.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
tsunami.S
ultra.S mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
viking.S