commit | d9f3a01eebe80180babd8541406490020f184d17 | [log] [tgz] |
---|---|---|
author | Dennis Zhou <dennis@kernel.org> | Thu Feb 21 15:44:35 2019 -0800 |
committer | Dennis Zhou <dennis@kernel.org> | Wed Mar 13 12:25:31 2019 -0700 |
tree | 752b2b1e32df289e27ef8b89459a09342e9ad7bc | |
parent | 8c43004af01635cc9fbb11031d070e5e0d327ef2 [diff] |
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>