Commit 703410e7 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] init_inode_once() wants sizeof(struct hlist_head)

From: William Lee Irwin III <wli@holomorphy.com>

inode_init() wants to deal with things in in units of the size of
struct hlist_head, not struct list_head.
parent 5bf4599e
......@@ -1260,7 +1260,7 @@ void __init inode_init(unsigned long mempages)
init_waitqueue_head(&i_wait_queue_heads[i].wqh);
mempages >>= (14 - PAGE_SHIFT);
mempages *= sizeof(struct list_head);
mempages *= sizeof(struct hlist_head);
for (order = 0; ((1UL << order) << PAGE_SHIFT) < mempages; order++)
;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment