Messages in this thread | | | From | David Howells <> | Subject | Re: [patch 3/3] mm: keep pages from unevictable mappings off the LRU lists | Date | Mon, 23 Mar 2009 10:53:27 +0000 |
| |
Johannes Weiner <hannes@cmpxchg.org> wrote:
> - if (page_is_file_cache(page)) > + if (mapping_unevictable(mapping)) > + add_page_to_unevictable_list(page); > + else if (page_is_file_cache(page))
It would be nice to avoid adding an extra test and branch in here. This function is used a lot, and quite often we know the answer to the first test before we even get here.
David
| |