提交 1deaf9d1 编写于 作者: G Geliang Tang 提交者: Linus Torvalds

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: NGeliang Tang <geliangtang@163.com>
Reviewed-by: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 72214a24
...@@ -199,8 +199,7 @@ void fsnotify_unmount_inodes(struct super_block *sb) ...@@ -199,8 +199,7 @@ void fsnotify_unmount_inodes(struct super_block *sb)
break; break;
} }
spin_unlock(&next_i->i_lock); spin_unlock(&next_i->i_lock);
next_i = list_entry(next_i->i_sb_list.next, next_i = list_next_entry(next_i, i_sb_list);
struct inode, i_sb_list);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册