[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090401145041.6681fc90.akpm@linux-foundation.org>
Date: Wed, 1 Apr 2009 14:50:41 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Manish Katiyar <mkatiyar@...il.com>
Cc: trivial@...nel.org, adilger@....com, mkatiyar@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] : Add dev-id and inode number for debugging in
init_special_inode in fs/inode.c
On Tue, 31 Mar 2009 08:11:00 +0530
Manish Katiyar <mkatiyar@...il.com> wrote:
> --- a/fs/inode.c
> +++ b/fs/inode.c
> @@ -1540,7 +1540,8 @@ void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev)
> else if (S_ISSOCK(mode))
> inode->i_fop = &bad_sock_fops;
> else
> - printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
> - mode);
> + printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for"
> + " inode %s:%lu\n", mode, inode->i_sb->s_id,
> + inode->i_ino);
> }
Is ther a guarantee that inode->i_sb and inode->i_ino have been initialised
at this time?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists