diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-11-12 18:10:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:24 -0500 |
commit | 6bc080d8fdae33f4463203a400cfaa01e91701e2 (patch) | |
tree | 3d88fc27cc2b9d87f63340bd415adabef1380c29 | |
parent | 93be3c2eb3371f022ad88acf1ab6bee8e3c38378 (diff) |
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: Oleg 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/debugfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index c7c83ff0f752..9c0444cccbe1 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -566,8 +566,7 @@ void debugfs_remove_recursive(struct dentry *dentry) | |||
566 | mutex_lock(&parent->d_inode->i_mutex); | 566 | mutex_lock(&parent->d_inode->i_mutex); |
567 | 567 | ||
568 | if (child != dentry) { | 568 | if (child != dentry) { |
569 | next = list_entry(child->d_u.d_child.next, struct dentry, | 569 | next = list_next_entry(child, d_u.d_child); |
570 | d_u.d_child); | ||
571 | goto up; | 570 | goto up; |
572 | } | 571 | } |
573 | 572 | ||