Re: [RFC PATCH 1/3] debugfs: fix automount inode i_nlink references
From: Greg Kroah-Hartman
Date: Mon Feb 08 2016 - 01:38:56 EST
On Thu, Dec 10, 2015 at 01:47:12PM +0100, Roman Pen wrote:
> Directory inodes should start off with i_nlink == 2 (for "." entry).
> Of course the same rule should be applied to automount dentries for
> child and parent inodes as well.
>
> Also now automount dentry does fsnotify_mkdir.
>
> Without this patch kernel complains when sees i_nlink == 0:
How can the kernel see this? What did you do to trigger this?
thanks,
greg k-h