[PATCH v8 2/6] vfs: Remove unnecessary list_for_each_entry_safe() variants

2017-10-31 Thread Waiman Long
From: Jan Kara evict_inodes() and invalidate_inodes() use list_for_each_entry_safe() to iterate sb->s_inodes list. However, since we use i_lru list entry for our local temporary list of inodes to destroy, the inode is guaranteed to stay in sb->s_inodes list while we hold

[PATCH v8 2/6] vfs: Remove unnecessary list_for_each_entry_safe() variants

2017-10-31 Thread Waiman Long
From: Jan Kara evict_inodes() and invalidate_inodes() use list_for_each_entry_safe() to iterate sb->s_inodes list. However, since we use i_lru list entry for our local temporary list of inodes to destroy, the inode is guaranteed to stay in sb->s_inodes list while we hold sb->s_inode_list_lock.