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)
commitd9f3a01eebe80180babd8541406490020f184d17
tree752b2b1e32df289e27ef8b89459a09342e9ad7bc
parent8c43004af01635cc9fbb11031d070e5e0d327ef2
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