lkml.org 
[lkml]   [2004]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] anobjrmap 5/6 anonmm
On Thu, 18 Mar 2004, Hugh Dickins wrote:

> + (*mapcount)--;

> + if (anonmm->mm && anonmm->mm->rss) {
> + referenced += page_referenced_one(
> + page, anonmm->mm, page->index, mapcount);
> + if (!*mapcount)
> + goto out;
> }

Brilliant little optimisation over what I thought Linus
proposed at first. This certainly removes the biggest
disadvantage I (and presumably Andrea) thought the mm
based reverse mapping would have !

I like this code a lot...

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.130 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site