]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:16:56 +0000 (15:16 -0800)
committerLinus 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

index e785fd954c30731e8f8a5dd676f903f84f0df70c..741077deef3b5544dd71ae9635facb8ac1a228a9 100644 (file)
@@ -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);
                }
 
                /*