Re: [RFC PATCH 1/3] debugfs: fix automount inode i_nlink references

Greg Kroah-Hartman
2016-02-08T06:38:53Z

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