Skip to content

Commit c9f8073

Browse files
kvaneeshmpe
authored andcommitted
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>
1 parent e15a4fe commit c9f8073

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/powerpc/include/asm/book3s/64/mmu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ extern void radix_init_pseries(void);
208208
static inline void radix_init_pseries(void) { };
209209
#endif
210210

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)
212212
{
213213
int index = ea >> MAX_EA_BITS_PER_CONTEXT;
214214

@@ -223,7 +223,7 @@ static inline int get_ea_context(mm_context_t *ctx, unsigned long ea)
223223
static inline unsigned long get_user_vsid(mm_context_t *ctx,
224224
unsigned long ea, int ssize)
225225
{
226-
unsigned long context = get_ea_context(ctx, ea);
226+
unsigned long context = get_user_context(ctx, ea);
227227

228228
return get_vsid(context, ea, ssize);
229229
}

arch/powerpc/include/asm/mmu_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea)
8181
{
8282
int context_id;
8383

84-
context_id = get_ea_context(&mm->context, ea);
84+
context_id = get_user_context(&mm->context, ea);
8585
if (!context_id)
8686
return true;
8787
return false;

arch/powerpc/mm/slb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ static long slb_allocate_user(struct mm_struct *mm, unsigned long ea)
734734
if (ea >= mm->context.slb_addr_limit)
735735
return -EFAULT;
736736

737-
context = get_ea_context(&mm->context, ea);
737+
context = get_user_context(&mm->context, ea);
738738
if (!context)
739739
return -EFAULT;
740740

0 commit comments

Comments
 (0)