Skip to content

Commit 47c317a

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: slub: dump more data on slab corruption SLUB: simplify re on_each_cpu()
2 parents e89970a + 0ebd652 commit 47c317a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mm/slub.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static void print_trailer(struct kmem_cache *s, struct page *page, u8 *p)
492492
if (p > addr + 16)
493493
print_section("Bytes b4", p - 16, 16);
494494

495-
print_section("Object", p, min(s->objsize, 128));
495+
print_section("Object", p, min_t(unsigned long, s->objsize, PAGE_SIZE));
496496

497497
if (s->flags & SLAB_RED_ZONE)
498498
print_section("Redzone", p + s->objsize,
@@ -1495,15 +1495,7 @@ static void flush_cpu_slab(void *d)
14951495

14961496
static void flush_all(struct kmem_cache *s)
14971497
{
1498-
#ifdef CONFIG_SMP
14991498
on_each_cpu(flush_cpu_slab, s, 1);
1500-
#else
1501-
unsigned long flags;
1502-
1503-
local_irq_save(flags);
1504-
flush_cpu_slab(s);
1505-
local_irq_restore(flags);
1506-
#endif
15071499
}
15081500

15091501
/*

0 commit comments

Comments
 (0)