Messages in this thread | | | Date | Tue, 8 Mar 2011 12:25:41 -0600 (CST) | From | Christoph Lameter <> | Subject | Re: [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>
| |