Commit 7f5327ec authored by Geliang Tang's avatar Geliang Tang Committed by Ben Hutchings

fs/notify/inode_mark.c: use list_next_entry in fsnotify_unmount_inodes

commit 1deaf9d1 upstream.

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>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent f649564d
......@@ -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);
}
/*
......
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