Re: Linux-2.5.16

Linus Torvalds (
Sun, 19 May 2002 17:39:42 -0700 (PDT)

On Mon, 20 May 2002, Roman Zippel wrote:
> Two questions about asm-generic/tlb.h:
> - freed is never incremented, callers of tlb_remove_page have to do the
> rss update themselves?

No, that's just a missed thing (for a while I thought I could use "nr" for
"freed", so I changed the code and forgot to add back the free'd).

> - will a non smp version later be added again?

Not likely, at least not in the form it was before of having two
completely different paths.

But I was thinking of doing a one-source thing that the compiler can
statically optimize, with something like

#define fast_case(tlb) ((tlb)->nr == ~0UL)
#define fast_case(tlb) (1)

which allows us to have one set of sources for both UP and SMP, but the UP
case gets optimized by the compiler.

Do you want to do the freed and the above and test it?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at