]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: renew the max_contig if we merge the head and previous block
authorJianyu Zhan <nasa4836@gmail.com>
Fri, 28 Mar 2014 12:55:21 +0000 (20:55 +0800)
committerTejun Heo <tj@kernel.org>
Sat, 29 Mar 2014 13:29:42 +0000 (09:29 -0400)
commit045394670e707de348e4cdf516081c176ffa303e
treea4d853bdc3b274be013aa97d6378acbf2f995d88
parent7627a8b9a1f01d5706789fc05c275ceecb39c9bf
percpu: renew the max_contig if we merge the head and previous block

During pcpu_alloc_area(), we might merge the current head with the
previous block. Since we have calculated the max_contig using the
size of previous block before we skip it, and now we update the size
of previous block, so we should renew the max_contig.

Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c