projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72214a2
)
fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes
author
Geliang Tang
<geliangtang@163.com>
Thu, 14 Jan 2016 23:16:56 +0000
(15:16 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000
(16:00 -0800)
To make the intention clearer, use list_next_entry instead of
list_entry.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/inode_mark.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/inode_mark.c
b/fs/notify/inode_mark.c
index e785fd954c30731e8f8a5dd676f903f84f0df70c..741077deef3b5544dd71ae9635facb8ac1a228a9 100644
(file)
--- a/
fs/notify/inode_mark.c
+++ b/
fs/notify/inode_mark.c
@@
-199,8
+199,7
@@
void fsnotify_unmount_inodes(struct super_block *sb)
break;
}
spin_unlock(&next_i->i_lock);
- next_i = list_entry(next_i->i_sb_list.next,
- struct inode, i_sb_list);
+ next_i = list_next_entry(next_i, i_sb_list);
}
/*