vfs: fix spinning prevention in prune_icache_sb
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / fs / inode.c
index ec7924696a139870c70a0971c8d2d1483a747ade..ecbb68dc7e2aef9bbf52d0b94c0dd401a7d50bae 100644 (file)
@@ -634,7 +634,7 @@ void prune_icache_sb(struct super_block *sb, int nr_to_scan)
                 * inode to the back of the list so we don't spin on it.
                 */
                if (!spin_trylock(&inode->i_lock)) {
-                       list_move(&inode->i_lru, &sb->s_inode_lru);
+                       list_move_tail(&inode->i_lru, &sb->s_inode_lru);
                        continue;
                }