diff options
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 59d44d61f5f1..aa121cef76de 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -353,6 +353,8 @@ static void pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, | |||
353 | block->contig_hint_start); | 353 | block->contig_hint_start); |
354 | return; | 354 | return; |
355 | } | 355 | } |
356 | /* reset to satisfy the second predicate above */ | ||
357 | block_off = 0; | ||
356 | 358 | ||
357 | *bits = block->right_free; | 359 | *bits = block->right_free; |
358 | *bit_off = (i + 1) * PCPU_BITMAP_BLOCK_BITS - block->right_free; | 360 | *bit_off = (i + 1) * PCPU_BITMAP_BLOCK_BITS - block->right_free; |
@@ -407,6 +409,8 @@ static void pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, | |||
407 | *bit_off = pcpu_block_off_to_off(i, block->first_free); | 409 | *bit_off = pcpu_block_off_to_off(i, block->first_free); |
408 | return; | 410 | return; |
409 | } | 411 | } |
412 | /* reset to satisfy the second predicate above */ | ||
413 | block_off = 0; | ||
410 | 414 | ||
411 | *bit_off = ALIGN(PCPU_BITMAP_BLOCK_BITS - block->right_free, | 415 | *bit_off = ALIGN(PCPU_BITMAP_BLOCK_BITS - block->right_free, |
412 | align); | 416 | align); |