lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/3] mm: shrink_inactive_lis() nr_scan accounting fix fix
Date
> Not a newly introduced problem, but this early break might under scan
> the list, if (max_scan > swap_cluster_max). Luckily the only two
> callers all call with (max_scan <= swap_cluster_max).
>
> What shall we do? The comprehensive solution may be to
> - remove the big do-while loop
> - replace sc->swap_cluster_max => max_scan
> - take care in the callers to not passing small max_scan values
>
> Or to simply make this function more robust like this?

Sorry, I haven't catch your point. Can you please tell me your worried
scenario?






\
 
 \ /
  Last update: 2009-07-17 02:19    [W:0.100 / U:10.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site