Thread (36 messages) 36 messages, 7 authors, 2017-06-29

Re: [PATCH V4 04/12] kernfs: don't set dentry->d_fsdata

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2017-06-29 12:51:31
Also in: lkml

On Wed, Jun 28, 2017 at 09:29:54AM -0700, Shaohua Li wrote:
From: Shaohua Li <redacted>

When working on adding exportfs operations in kernfs, I found it's hard
to initialize dentry->d_fsdata in the exportfs operations. Looks there
is no way to do it without race condition. Look at the kernfs code
closely, there is no point to set dentry->d_fsdata. inode->i_private
already points to kernfs_node, and we can get inode from a dentry. So
this patch just delete the d_fsdata usage.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Shaohua Li <redacted>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help