diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-07-08 17:24:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-13 05:29:10 -0400 |
commit | 4f5e65a1cc90bbb15b9f6cdc362922af1bcc155a (patch) | |
tree | c635e87d98c9961ad95c2351bae6d9609eeb761f /include | |
parent | 64372501e2af9b11e2ffd1ff79345dc4b1abe539 (diff) |
fput: turn "list_head delayed_fput_list" into llist_head
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 834c9e5113d9..d40e8e78bbd1 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/stat.h> | 10 | #include <linux/stat.h> |
11 | #include <linux/cache.h> | 11 | #include <linux/cache.h> |
12 | #include <linux/list.h> | 12 | #include <linux/list.h> |
13 | #include <linux/llist.h> | ||
13 | #include <linux/radix-tree.h> | 14 | #include <linux/radix-tree.h> |
14 | #include <linux/rbtree.h> | 15 | #include <linux/rbtree.h> |
15 | #include <linux/init.h> | 16 | #include <linux/init.h> |
@@ -768,6 +769,7 @@ struct file { | |||
768 | */ | 769 | */ |
769 | union { | 770 | union { |
770 | struct list_head fu_list; | 771 | struct list_head fu_list; |
772 | struct llist_node fu_llist; | ||
771 | struct rcu_head fu_rcuhead; | 773 | struct rcu_head fu_rcuhead; |
772 | } f_u; | 774 | } f_u; |
773 | struct path f_path; | 775 | struct path f_path; |