projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93be3c2
)
debugfs: use list_next_entry() in debugfs_remove_recursive()
author
Oleg Nesterov
<
[email protected]
>
Tue, 12 Nov 2013 23:10:04 +0000
(15:10 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:24 +0000
(12:09 +0900)
Change debugfs_remove_recursive() to use list_next_entry(child), no
changes in generated code.
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: Eilon Greenstein <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/debugfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/debugfs/inode.c
b/fs/debugfs/inode.c
index c7c83ff0f752ce6a86d6e42a420e34ed996ae8ca..9c0444cccbe108b245338a0d40a5d702fbe45407 100644
(file)
--- 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;
}