Re: nr_free_buffer_pages 2.4.23pre4
From: Mikael Pettersson
Date: Thu Sep 18 2003 - 07:03:42 EST
On Thu, 18 Sep 2003 07:06:12 +0200, Andrea Arcangeli <andrea@xxxxxxx> wrote:
> According to the kernel CVS you didn't merge this yet, so please merge
> the below too, it will remove a not necessary branch that also generates
> a gcc false positive (all harmless of course but it's more correct to
> remove it):
>
> --- 2.4.23pre4/mm/page_alloc.c.~1~ 2003-09-13 00:08:04.000000000 +0200
> +++ 2.4.23pre4/mm/page_alloc.c 2003-09-14 01:05:24.000000000 +0200
> @@ -258,8 +258,6 @@ static struct page * balance_classzone(z
> struct page * page = NULL;
> int __freed;
>
> - if (!(gfp_mask & __GFP_WAIT))
> - goto out;
> if (in_interrupt())
> BUG();
Andrea,
This cleanup leaves the 'out' label unused, triggering
yet another gcc warning (though less scary than the previous).
Please apply this cleanup patch on top of the one above.
/Mikael
--- linux-2.4.23-pre4/mm/page_alloc.c.~1~ 2003-09-18 13:43:41.753607800 +0200
+++ linux-2.4.23-pre4/mm/page_alloc.c 2003-09-18 13:55:46.785155159 +0200
@@ -317,7 +317,6 @@
}
current->nr_local_pages = 0;
}
- out:
*freed = __freed;
return page;
}
-
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/