diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-11-13 00:10:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 04:09:24 +0100 |
commit | 6bc080d8fdae33f4463203a400cfaa01e91701e2 (patch) | |
tree | 3d88fc27cc2b9d87f63340bd415adabef1380c29 | |
parent | list: introduce list_last_entry(), use list_{first,last}_entry() (diff) | |
download | linux-6bc080d8fdae33f4463203a400cfaa01e91701e2.tar.xz linux-6bc080d8fdae33f4463203a400cfaa01e91701e2.zip |
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) mutex_lock(&parent->d_inode->i_mutex); if (child != dentry) { - next = list_entry(child->d_u.d_child.next, struct dentry, - d_u.d_child); + next = list_next_entry(child, d_u.d_child); goto up; } |