Re: [PATCH] mm: make do_move_pages() complexity linear

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brice Goglin
Date: Friday, September 12, 2008 - 6:54 am

Christoph Lameter wrote:

No, it assumes that pages are stored in pagelist in order. But some of
them can be missing compared to the page array.


I don't think so. If this happens, the while loop will skip those pages.
(while in the regular case, the while loop does 0 iterations).
The while loop is still here to make sure we are processing the right pm
entry. What the patch changes is only that we don't uselessly look at
the already-processed beginning of pm.

thanks,
Brice
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Fri Sep 12, 5:31 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Christoph Lameter, (Fri Sep 12, 6:45 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Fri Sep 12, 6:54 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Christoph Lameter, (Fri Sep 12, 7:21 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Thu Sep 25, 5:58 am)