Re: [PATCH 1/1] PM / hibernate: memory_bm_find_bit -- tighten node optimisation

2019-10-11 Thread Rafael J. Wysocki
On Wednesday, September 25, 2019 4:39:12 PM CEST Andy Whitcroft wrote: > When looking for a bit by number we make use of the cached result from the > preceding lookup to speed up operation. Firstly we check if the requested > pfn is within the cached zone and if not lookup the new zone. We then >

[PATCH 1/1] PM / hibernate: memory_bm_find_bit -- tighten node optimisation

2019-09-25 Thread Andy Whitcroft
When looking for a bit by number we make use of the cached result from the preceding lookup to speed up operation. Firstly we check if the requested pfn is within the cached zone and if not lookup the new zone. We then check if the offset for that pfn falls within the existing cached node. This h