On Mon, 5 April 2010 17:26:58 +0900, Minchan Kim wrote: > > Seem to be not bad idea. :) > But we have to justify new interface before. For doing it, we have to say > why we can't do it by current functions(find_get_page, > add_to_page_cache and pagevec_lru_add_xxx) I guess we could do that. Whether setting up a vector when only dealing with single pages makes the code more readable or helps performance is a different matter, though. > Pagevec_lru_add_xxx does batch so that it can reduce calling path and > some overhead(ex, page_is_file_cache comparison, > get/put_cpu_var(lru_add_pvecs)). > > At least, it would be rather good than old for performance. ...if we can convert callers to also handle vectors. And if backing device is fast enough that cpu overhead becomes noticeable. And if there were no bigger fish left to catch. Jörn -- Joern's library part 15: http://www.knosof.co.uk/cbook/accu06a.pdf -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>