pgtable.c (c900529f3d9161bfde5cca0754f83b4d3c3e0220) | pgtable.c (907835e6dee6f77ac30ae50bb3f88bd92055c86e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/mm.h> 3#include <linux/gfp.h> 4#include <linux/hugetlb.h> 5#include <asm/pgalloc.h> 6#include <asm/tlb.h> 7#include <asm/fixmap.h> 8#include <asm/mtrr.h> --- 760 unchanged lines hidden (view full) --- 769 770/** 771 * pud_clear_huge - clear kernel PUD mapping when it is set 772 * 773 * Returns 1 on success and 0 on failure (no PUD map is found). 774 */ 775int pud_clear_huge(pud_t *pud) 776{ | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/mm.h> 3#include <linux/gfp.h> 4#include <linux/hugetlb.h> 5#include <asm/pgalloc.h> 6#include <asm/tlb.h> 7#include <asm/fixmap.h> 8#include <asm/mtrr.h> --- 760 unchanged lines hidden (view full) --- 769 770/** 771 * pud_clear_huge - clear kernel PUD mapping when it is set 772 * 773 * Returns 1 on success and 0 on failure (no PUD map is found). 774 */ 775int pud_clear_huge(pud_t *pud) 776{ |
777 if (pud_large(*pud)) { | 777 if (pud_leaf(*pud)) { |
778 pud_clear(pud); 779 return 1; 780 } 781 782 return 0; 783} 784 785/** --- 138 unchanged lines hidden --- | 778 pud_clear(pud); 779 return 1; 780 } 781 782 return 0; 783} 784 785/** --- 138 unchanged lines hidden --- |