Re: current_is_kswapd is a function

From: Andrew Morton
Date: Sun Oct 12 2003 - 07:01:24 EST


William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
>
> - if (current_is_kswapd)
> + if (current_is_kswapd())

Well damn, I must have looked at that a hundred times when wondering why
/proc/vmstat:pginodesteal was always zero. Thanks.

It would probably be worthwhile teaching the compiler to generate a warning
in this case; I doubt if anyone is likely to want to find out at runtime
whether the linker happened to place a particular function at address zero.
I shall suggest that.



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