Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/mm/hash: Rename get_ea_context to get_user_context

We will be adding get_kernel_context later. Update function name to indicate
this handle context allocation user space address.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Aneesh Kumar K.V and committed by
Michael Ellerman
c9f80734 e15a4fea

+4 -4
+2 -2
arch/powerpc/include/asm/book3s/64/mmu.h
··· 208 208 static inline void radix_init_pseries(void) { }; 209 209 #endif 210 210 211 - static inline int get_ea_context(mm_context_t *ctx, unsigned long ea) 211 + static inline int get_user_context(mm_context_t *ctx, unsigned long ea) 212 212 { 213 213 int index = ea >> MAX_EA_BITS_PER_CONTEXT; 214 214 ··· 223 223 static inline unsigned long get_user_vsid(mm_context_t *ctx, 224 224 unsigned long ea, int ssize) 225 225 { 226 - unsigned long context = get_ea_context(ctx, ea); 226 + unsigned long context = get_user_context(ctx, ea); 227 227 228 228 return get_vsid(context, ea, ssize); 229 229 }
+1 -1
arch/powerpc/include/asm/mmu_context.h
··· 81 81 { 82 82 int context_id; 83 83 84 - context_id = get_ea_context(&mm->context, ea); 84 + context_id = get_user_context(&mm->context, ea); 85 85 if (!context_id) 86 86 return true; 87 87 return false;
+1 -1
arch/powerpc/mm/slb.c
··· 734 734 if (ea >= mm->context.slb_addr_limit) 735 735 return -EFAULT; 736 736 737 - context = get_ea_context(&mm->context, ea); 737 + context = get_user_context(&mm->context, ea); 738 738 if (!context) 739 739 return -EFAULT; 740 740