]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: introduce helper to determine if two regions overlap
authorDennis Zhou <dennis@kernel.org>
Thu, 21 Feb 2019 23:44:35 +0000 (15:44 -0800)
committerDennis Zhou <dennis@kernel.org>
Wed, 13 Mar 2019 19:25:31 +0000 (12:25 -0700)
commit5b922aa118e6c447c76eb4ccda20b213f0b51924
tree752b2b1e32df289e27ef8b89459a09342e9ad7bc
parentaec31bc342a094e753813bbde2c197b7d0700b4b
percpu: introduce helper to determine if two regions overlap

While block hints were always accurate, it's possible when spanning
across blocks that we miss updating the chunk's contig_hint. Rather than
rely on correctness of the boundaries of hints, do a full overlap
comparison.

A future patch introduces the scan_hint which makes the contig_hint
slightly fuzzy as they can at times be smaller than the actual hint.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c