[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <84144f020806020911x4a74b32dj3192055a0320bd64@mail.gmail.com>
Date: Mon, 2 Jun 2008 19:11:59 +0300
From: "Pekka Enberg" <penberg@...helsinki.fi>
To: "Vegard Nossum" <vegard.nossum@...il.com>
Cc: linux-kernel@...r.kernel.org, "Pavel Emelyanov" <xemul@...nvz.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"David S. Miller" <davem@...emloft.net>, "Jan Kara" <jack@...e.cz>
Subject: Re: find: WARNING: Hard link count is wrong for /proc/1
On Mon, Jun 2, 2008 at 10:00 AM, Vegard Nossum <vegard.nossum@...il.com> wrote:
> diff --git a/fs/proc/base.c b/fs/proc/base.c
> index c447e07..10ee4a2 100644
> --- a/fs/proc/base.c
> +++ b/fs/proc/base.c
> @@ -2589,6 +2589,9 @@ static struct dentry
> *proc_pid_instantiate(struct inode *dir,
> #ifdef CONFIG_SECURITY
> inode->i_nlink += 1;
> #endif
> +#ifdef CONFIG_NET
#if defined(CONFIG_SECURITY) || defined(CONFIG_NET) ?
> + inode->i_nlink += 1;
> +#endif
>
> dentry->d_op = &pid_dentry_operations;
>
> --
> 1.5.4.1
> --
> 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/
>
--
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