mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
mm/percpu: replace the goto with break
In function pcpu_reclaim_populated(), the line of goto jumping is unnecessary since the label 'end_chunk' is near the end of the for loop, use break instead. Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Dennis Zhou <dennis@kernel.org>
This commit is contained in:
parent
73046f8d31
commit
83d261fc9e
1 changed files with 1 additions and 2 deletions
|
@ -2167,7 +2167,7 @@ static void pcpu_reclaim_populated(void)
|
||||||
/* reintegrate chunk to prevent atomic alloc failures */
|
/* reintegrate chunk to prevent atomic alloc failures */
|
||||||
if (pcpu_nr_empty_pop_pages < PCPU_EMPTY_POP_PAGES_HIGH) {
|
if (pcpu_nr_empty_pop_pages < PCPU_EMPTY_POP_PAGES_HIGH) {
|
||||||
reintegrate = true;
|
reintegrate = true;
|
||||||
goto end_chunk;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2203,7 +2203,6 @@ static void pcpu_reclaim_populated(void)
|
||||||
end = -1;
|
end = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
end_chunk:
|
|
||||||
/* batch tlb flush per chunk to amortize cost */
|
/* batch tlb flush per chunk to amortize cost */
|
||||||
if (freed_page_start < freed_page_end) {
|
if (freed_page_start < freed_page_end) {
|
||||||
spin_unlock_irq(&pcpu_lock);
|
spin_unlock_irq(&pcpu_lock);
|
||||||
|
|
Loading…
Reference in a new issue