Commit 6bc080d8 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

debugfs: use list_next_entry() in debugfs_remove_recursive()

Change debugfs_remove_recursive() to use list_next_entry(child), no
changes in generated code.
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 93be3c2e
...@@ -566,8 +566,7 @@ void debugfs_remove_recursive(struct dentry *dentry) ...@@ -566,8 +566,7 @@ void debugfs_remove_recursive(struct dentry *dentry)
mutex_lock(&parent->d_inode->i_mutex); mutex_lock(&parent->d_inode->i_mutex);
if (child != dentry) { if (child != dentry) {
next = list_entry(child->d_u.d_child.next, struct dentry, next = list_next_entry(child, d_u.d_child);
d_u.d_child);
goto up; goto up;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment