lkml.org 
[lkml]   [2011]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] slub,rcu: don't assume the size of struct rcu_head
On Tue, 1 Mar 2011, Lai Jiangshan wrote:

> - * RCU free overloads the RCU head over the LRU
> - */
> - struct rcu_head *head = (void *)&page->lru;
> + struct rcu_head *head;
> +
> + if (need_reserve_slab_rcu) {
> + int order = compound_order(page);
> + int offset = (PAGE_SIZE << order) - s->reserved;
> +
> + BUG_ON(s->reserved != sizeof(*head));

VM_BUG_ON is sufficient here I think.

Otherwise

Acked-by: Christoph Lameter <cl@linux.com>



\
 
 \ /
  Last update: 2011-03-08 19:27    [W:0.073 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site