list_move in prune_icache_sb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	/*
	 * we are inverting the sb->s_inode_lru_lock/inode->i_lock here,
	 * so use a trylock. If we fail to get the lock, just move the
	 * 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);
		continue;
	}

was introduced in "fs: Lock the inode LRU list separately".  But list_move
moves to the front of the list, where the item already is, making this a
no-op.  Should probably be a list_move_tail.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux