Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9f80734 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman
Browse files

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: default avatarAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e15a4fea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ extern void radix_init_pseries(void);
static inline void radix_init_pseries(void) { };
#endif

static inline int get_ea_context(mm_context_t *ctx, unsigned long ea)
static inline int get_user_context(mm_context_t *ctx, unsigned long ea)
{
	int index = ea >> MAX_EA_BITS_PER_CONTEXT;

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

	return get_vsid(context, ea, ssize);
}
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea)
{
	int context_id;

	context_id = get_ea_context(&mm->context, ea);
	context_id = get_user_context(&mm->context, ea);
	if (!context_id)
		return true;
	return false;
+1 −1
Original line number Diff line number Diff line
@@ -734,7 +734,7 @@ static long slb_allocate_user(struct mm_struct *mm, unsigned long ea)
	if (ea >= mm->context.slb_addr_limit)
		return -EFAULT;

	context = get_ea_context(&mm->context, ea);
	context = get_user_context(&mm->context, ea);
	if (!context)
		return -EFAULT;