* init_inode_once() wants sizeof(struct hlist_head)
@ 2003-03-25 13:58 William Lee Irwin III
0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2003-03-25 13:58 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
inode_init() wants to deal with things in in units of the size of
struct hlist_head, not struct list_head.
diff -urpN merge-2.5.66-7/fs/inode.c merge-2.5.66-8/fs/inode.c
--- merge-2.5.66-7/fs/inode.c 2003-03-24 14:01:48.000000000 -0800
+++ merge-2.5.66-8/fs/inode.c 2003-03-25 05:41:18.000000000 -0800
@@ -1260,7 +1260,7 @@ void __init inode_init(unsigned long mem
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++)
;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-25 13:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 13:58 init_inode_once() wants sizeof(struct hlist_head) William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®