Nick Piggin wrote:
+static void kmem_rcu_free(struct rcu_head *head) +{ + struct slob_rcu *slob_rcu = (struct slob_rcu *)head; + void *b = (void *)slob_rcu - slob_rcu->c->size;
No, I forgot that c->size includes the size of struct slob_rcu here. Will send updated patch which is tested and includes SOB.
+ + __kmem_cache_free(b, slob_rcu->c); +}
-- SUSE Labs, Novell Inc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Christoph Lameter <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Matt Mackall <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Christoph Lameter <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: David Miller <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Nick Piggin <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Matt Mackall <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- From: Nick Piggin <[email protected]>
- Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- Prev by Date: Re: [PATCH] Type cast some size_t arguments to 'unsigned int' to avoid (harmless) gcc printk warnings.
- Next by Date: Re: Remove an unused variable from get_unmapped_area()
- Previous by thread: Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- Next by thread: Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree
- Index(es):