Re: [PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-21 Thread Greg Kroah-Hartman
On Tue, Jun 21, 2016 at 11:24:47AM -0400, Tejun Heo wrote: > On Fri, Jun 17, 2016 at 05:51:17PM -0400, Tejun Heo wrote: > > kernfs_notify_workfn() sends out file modified events for the > > scheduled kernfs_nodes. Because the modifications aren't from > > userland, it doesn't have the matching

Re: [PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-21 Thread Greg Kroah-Hartman
On Tue, Jun 21, 2016 at 11:24:47AM -0400, Tejun Heo wrote: > On Fri, Jun 17, 2016 at 05:51:17PM -0400, Tejun Heo wrote: > > kernfs_notify_workfn() sends out file modified events for the > > scheduled kernfs_nodes. Because the modifications aren't from > > userland, it doesn't have the matching

Re: [PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-21 Thread Tejun Heo
On Fri, Jun 17, 2016 at 05:51:17PM -0400, Tejun Heo wrote: > kernfs_notify_workfn() sends out file modified events for the > scheduled kernfs_nodes. Because the modifications aren't from > userland, it doesn't have the matching file struct at hand and can't > use fsnotify_modify(). Instead, it

Re: [PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-21 Thread Tejun Heo
On Fri, Jun 17, 2016 at 05:51:17PM -0400, Tejun Heo wrote: > kernfs_notify_workfn() sends out file modified events for the > scheduled kernfs_nodes. Because the modifications aren't from > userland, it doesn't have the matching file struct at hand and can't > use fsnotify_modify(). Instead, it

[PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-17 Thread Tejun Heo
kernfs_notify_workfn() sends out file modified events for the scheduled kernfs_nodes. Because the modifications aren't from userland, it doesn't have the matching file struct at hand and can't use fsnotify_modify(). Instead, it looked up the inode and then used d_find_any_alias() to find the

[PATCH kernfs/for-4.7-fixes] kernfs: don't depend on d_find_any_alias() when generating notifications

2016-06-17 Thread Tejun Heo
kernfs_notify_workfn() sends out file modified events for the scheduled kernfs_nodes. Because the modifications aren't from userland, it doesn't have the matching file struct at hand and can't use fsnotify_modify(). Instead, it looked up the inode and then used d_find_any_alias() to find the