percpu: use metadata blocks to update the chunk contig hint
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:18 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 21:41:06 +0000 (17:41 -0400)
commit525ca84daec01825b0d037f5fcf60adb7f510118
tree776a07d560c16a620d7b342f7026ae406402fea7
parentb185cd0dc61c14875155e7bcc3f2c139b6feefd2
percpu: use metadata blocks to update the chunk contig hint

The largest free region will either be a block level contig hint or an
aggregate over the left_free and right_free areas of blocks. This is a
much smaller set of free areas that need to be checked than a full
traverse.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c