* [PATCH] SLUB: killed the unused "end" variable
@ 2007-11-12 16:49 Denis Cheng
2007-11-12 19:18 ` Christoph Lameter
0 siblings, 1 reply; 2+ messages in thread
From: Denis Cheng @ 2007-11-12 16:49 UTC (permalink / raw)
To: Christoph Lameter, Mel Gorman, Andrew Morton, Linus Torvalds
Cc: linux-mm, linux-kernel, Denis Cheng
Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore.
Signed-off-by: Denis Cheng <crquan@gmail.com>
---
mm/slub.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
index 84f59fd..9acb413 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1080,7 +1080,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
struct page *page;
struct kmem_cache_node *n;
void *start;
- void *end;
void *last;
void *p;
@@ -1101,7 +1100,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
SetSlabDebug(page);
start = page_address(page);
- end = start + s->objects * s->size;
if (unlikely(s->flags & SLAB_POISON))
memset(start, POISON_INUSE, PAGE_SIZE << s->order);
--
1.5.3.4
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] SLUB: killed the unused "end" variable
2007-11-12 16:49 [PATCH] SLUB: killed the unused "end" variable Denis Cheng
@ 2007-11-12 19:18 ` Christoph Lameter
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2007-11-12 19:18 UTC (permalink / raw)
To: Denis Cheng
Cc: Mel Gorman, Andrew Morton, Linus Torvalds, linux-mm, linux-kernel
On Tue, 13 Nov 2007, Denis Cheng wrote:
> Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore.
Acked-by: Christoph Lameter <clameter@sgi.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-12 19:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 16:49 [PATCH] SLUB: killed the unused "end" variable Denis Cheng
2007-11-12 19:18 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox