vfs: avoid call to inode_lru_list_del() if possible
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 Jul 2011 04:55:13 +0000 (06:55 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Aug 2011 05:41:17 +0000 (01:41 -0400)
commitc4ae0c65455c1bb30d1b71c6dd9a1a62aadde8ef
tree75d45726ff5f09955054a665e368b919faf4c105
parentf2ee7abf4c40c8e6bffced923a7c01ea2d1f6c97
vfs: avoid call to inode_lru_list_del() if possible

inode_lru_list_del() is expensive because of per superblock lru locking,
while some inodes are not in lru list.

Adding a check in iput_final() can speedup pipe/sockets workloads on
SMP.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c