From: Geliang Tang Date: Thu, 14 Jan 2016 23:16:56 +0000 (-0800) Subject: fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1deaf9d19776916cd1c83191503bf327319a301a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes To make the intention clearer, use list_next_entry instead of list_entry. Signed-off-by: Geliang Tang Reviewed-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index e785fd954c30..741077deef3b 100644 --- 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); } /*