> From: KOSAKI Motohiro [mailto:kosaki.motohiro@xxxxxxxxx] > Subject: Re: is there a "lru_cache_add_anon_tail"? > > On Thu, May 10, 2012 at 12:13 PM, Dan Magenheimer > <dan.magenheimer@xxxxxxxxxx> wrote: > > (Still working on allowing zcache to "evict" swap pages...) > > > > Apologies if I got head/tail reversed as used by the > > lru queues... the "directional sense" of the queues is > > not obvious so I'll describe using different terminology... > > > > If I have an anon page and I would like to add it to > > the "reclaim soonest" end of the queue instead of the > > "most recently used so don't reclaim it for a long time" > > end of the queue, does an equivalent function similar to > > lru_cache_add_anon(page) exist? > > > > AFAIK, no exist. > rotate_reclaimable_page() has similar requirement, but I doubt > you can reuse it. maybe you need new function by yourself. Thanks for the pointer! It looks like I can extract the code I need from there. > But note, many people dislike add_anon_tail feature. -ck patch had > swap prefetch patch and it made performance decrease. I'm not > sure it is good improvemnt for zcache.... I understand. I think it does make sense for this usage in zcache but will describe it when I am ready to post an RFC. Thanks, Dan -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href