From 7f5327ec10a09069756c83c45a08a98bf249f260 Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Thu, 14 Jan 2016 15:16:56 -0800 Subject: fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes commit 1deaf9d19776916cd1c83191503bf327319a301a upstream. 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 Signed-off-by: Ben Hutchings --- fs/notify/inode_mark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs') diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index fbb9dfb7b1d2..506bd1496df2 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c @@ -298,8 +298,7 @@ void fsnotify_unmount_inodes(struct list_head *list) 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); } /* -- cgit v1.2.3