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

Commit cae5d390 authored by Stephen Wilson's avatar Stephen Wilson Committed by Al Viro
Browse files

mm: arch: rename in_gate_area_no_task to in_gate_area_no_mm



Now that gate vma's are referenced with respect to a particular mm and not a
particular task it only makes sense to propagate the change to this predicate as
well.

Signed-off-by: default avatarStephen Wilson <wilsons@start.ca>
Reviewed-by: default avatarMichel Lespinasse <walken@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 83b964bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -820,7 +820,7 @@ static int __init vdso_init(void)
}
}
arch_initcall(vdso_init);
arch_initcall(vdso_init);


int in_gate_area_no_task(unsigned long addr)
int in_gate_area_no_mm(unsigned long addr)
{
{
	return 0;
	return 0;
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -337,7 +337,7 @@ static int __init vdso_init(void)
}
}
arch_initcall(vdso_init);
arch_initcall(vdso_init);


int in_gate_area_no_task(unsigned long addr)
int in_gate_area_no_mm(unsigned long addr)
{
{
	return 0;
	return 0;
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -104,7 +104,7 @@ int in_gate_area(struct mm_struct *mm, unsigned long address)
	return 0;
	return 0;
}
}


int in_gate_area_no_task(unsigned long address)
int in_gate_area_no_mm(unsigned long address)
{
{
	return 0;
	return 0;
}
}
+4 −4
Original line number Original line Diff line number Diff line
@@ -881,11 +881,11 @@ int in_gate_area(struct mm_struct *mm, unsigned long addr)
}
}


/*
/*
 * Use this when you have no reliable task/vma, typically from interrupt
 * Use this when you have no reliable mm, typically from interrupt
 * context. It is less reliable than using the task's vma and may give
 * context. It is less reliable than using a task's mm and may give
 * false positives:
 * false positives.
 */
 */
int in_gate_area_no_task(unsigned long addr)
int in_gate_area_no_mm(unsigned long addr)
{
{
	return (addr >= VSYSCALL_START) && (addr < VSYSCALL_END);
	return (addr >= VSYSCALL_START) && (addr < VSYSCALL_END);
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -435,7 +435,7 @@ int in_gate_area(struct mm_struct *mm, unsigned long addr)
	return vma && addr >= vma->vm_start && addr < vma->vm_end;
	return vma && addr >= vma->vm_start && addr < vma->vm_end;
}
}


int in_gate_area_no_task(unsigned long addr)
int in_gate_area_no_mm(unsigned long addr)
{
{
	return 0;
	return 0;
}
}
Loading