Re: [PATCH] powerpc/mm/radix: Drop unneeded NULL check

2017-10-17 Thread Aneesh Kumar K.V
On 10/17/2017 05:24 PM, Nicholas Piggin wrote: On Mon, 16 Oct 2017 12:41:00 +0530 "Aneesh Kumar K.V" wrote: @@ -175,10 +175,9 @@ void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmadd #ifdef CONFIG_HUGETLB_PAGE /* need the return fix for nohash.c */

Re: [PATCH] powerpc/mm/radix: Drop unneeded NULL check

2017-10-17 Thread Nicholas Piggin
On Mon, 16 Oct 2017 12:41:00 +0530 "Aneesh Kumar K.V" wrote: > @@ -175,10 +175,9 @@ void radix__local_flush_tlb_page(struct vm_area_struct > *vma, unsigned long vmadd > #ifdef CONFIG_HUGETLB_PAGE > /* need the return fix for nohash.c */ > if (vma && is_vm_hugetlb_page(vma)) > -

[PATCH] powerpc/mm/radix: Drop unneeded NULL check

2017-10-16 Thread Aneesh Kumar K.V
From: Michael Ellerman We call these functions with non-NULL mm or vma. Hence we can skip the NULL check in these functions. We also remove now unused function __local_flush_hugetlb_page(). Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/hugetlb.h | 6 -- arch/powerpc/mm/tlb-