Re: [PATCH v2] mm/compactoin: Fix misbehaviors of fast_find_migrateblock()

From
Wonhyuk Yang <hidden>
Date
2021-01-28 13:50:39
Reply to
Mel Gorman, 2021-01-28
On Thu, Jan 28, 2021 at 10:25 PM Mel Gorman [off-list ref] wrote:
As nr_scanned is post-incremented, this will still consider if the page
should be used when the limit is reached. ++nr_scanned?
Hi,

Let's consider that limit is 4, nr_scanned is 0 and loop until reach the limit.
1) pre-increment: it will search three times.(0,1,2)
2) post-increment: it will search four times. (0,1,2,3)

So you mean that searching three times is correct?
Thread (9 messages) 9 messages, 3 authors, last reply 2021-01-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help