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

2016-02-09 Thread Roman Peniaev
On Mon, Feb 8, 2016 at 5:35 PM, Greg Kroah-Hartman wrote: > On Mon, Feb 08, 2016 at 11:28:52AM +0100, Roman Peniaev wrote: >> On Mon, Feb 8, 2016 at 7:38 AM, Greg Kroah-Hartman >> wrote: >> > On Thu, Dec 10, 2015 at 01:47:12PM +0100, Roman Pen wrote: >> >> Directory inodes should start off with i

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

2016-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2016 at 11:28:52AM +0100, Roman Peniaev wrote: > On Mon, Feb 8, 2016 at 7:38 AM, Greg Kroah-Hartman > wrote: > > 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

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

2016-02-08 Thread Roman Peniaev
On Mon, Feb 8, 2016 at 7:38 AM, Greg Kroah-Hartman wrote: > 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.

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

2016-02-07 Thread Greg Kroah-Hartman
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

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

2015-12-10 Thread Roman Pen
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: [ 86.288070] WA