mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: akpm@zip.com.au
Cc: linux-kernel@vger.kernel.org
Subject: init_inode_once() wants sizeof(struct hlist_head)
Date: Tue, 25 Mar 2003 05:58:25 -0800	[thread overview]
Message-ID: <20030325135825.GJ30140@holomorphy.com> (raw)

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++)
 		;
 

                 reply	other threads:[~2003-03-25 13:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030325135825.GJ30140@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®