Commit 1deaf9d1 authored by Geliang Tang's avatar Geliang Tang Committed by 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: default avatarGeliang Tang <geliangtang@163.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment