Re: [PATCH 8/8] fix handling of st_nlink on procfs root

From: Eric W. Biederman
Date: Wed Feb 15 2006 - 12:34:04 EST


Al Viro <viro@xxxxxxxxxxxxxxxx> writes:

> On Wed, Feb 15, 2006 at 02:20:17AM -0700, Eric W. Biederman wrote:
>> And it is actually wrong. It fails to take into account the static
>> /proc entries.
>> > + stat->nlink = proc_root.nlink + nr_processes();
>
> The hell it does. See ^^^^^^^^^^^^^^ this.

Right. Sorry. I had a similar issue and when I check your patch for the
same problem somehow I thought proc_root was a struct inode and not a
struct proc_dir_entry.

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/