Re: Typo in include/linux/mmzone.h

From: kernel
Date: Sat Jan 07 2006 - 22:01:58 EST


On Sunday 08 January 2006 08:54, Marco Costalba wrote:
> Hi,
>
> probably there is a typo in your last patch:
> [PATCH] mm: add populated_zone() helper
>
> In
>
> +++ b/include/linux/mmzone.h
> @@ -388,6 +388,11 @@ static inline struct zone *next_zone(str
> #define for_each_zone(zone) \
> for (zone = pgdat_list->node_zones; zone; zone = next_zone(zone))
>
> +static inline int populated_zone(struct zone *zone)
> +{
> + return (!!zone->present_pages);
> +}
> +

No typo there at all. !! guarantees return of 1.

Cheers,
Con
-
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/