fput: turn "list_head delayed_fput_list" into llist_head
authorOleg Nesterov <oleg@redhat.com>
Mon, 8 Jul 2013 21:24:16 +0000 (14:24 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:08:54 +0000 (13:08 +0000)
commited78cc7670b768cbaecf85e678a1533c30b6114a
treeafcd4c20abc6e1173667bfa72c2e97db8ceb4e9a
parent81db6fbad60f91ab4d392e1ec24b18cec96125fb
fput: turn "list_head delayed_fput_list" into llist_head

commit 4f5e65a1cc90bbb15b9f6cdc362922af1bcc155a upstream.

fput() and delayed_fput() can use llist and avoid the locking.

This is unlikely path, it is not that this change can improve
the performance, but this way the code looks simpler.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrey Vagin <avagin@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Wang Kai <morgan.wang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/file_table.c
include/linux/fs.h