diff options
| -rw-r--r-- | mm/percpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 202e104df8a7..63e24fb4387b 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
| @@ -473,9 +473,11 @@ static int pcpu_alloc_area(struct pcpu_chunk *chunk, int size, int align) | |||
| 473 | * uncommon for percpu allocations. | 473 | * uncommon for percpu allocations. |
| 474 | */ | 474 | */ |
| 475 | if (head && (head < sizeof(int) || !(p[-1] & 1))) { | 475 | if (head && (head < sizeof(int) || !(p[-1] & 1))) { |
| 476 | *p = off += head; | ||
| 476 | if (p[-1] & 1) | 477 | if (p[-1] & 1) |
| 477 | chunk->free_size -= head; | 478 | chunk->free_size -= head; |
| 478 | *p = off += head; | 479 | else |
| 480 | max_contig = max(*p - p[-1], max_contig); | ||
| 479 | this_size -= head; | 481 | this_size -= head; |
| 480 | head = 0; | 482 | head = 0; |
| 481 | } | 483 | } |
