aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/eventpoll.h1
-rw-r--r--include/linux/fs.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h
index f1e1d3c47125..f6856a5a1d4b 100644
--- a/include/linux/eventpoll.h
+++ b/include/linux/eventpoll.h
@@ -61,7 +61,6 @@ struct file;
61static inline void eventpoll_init_file(struct file *file) 61static inline void eventpoll_init_file(struct file *file)
62{ 62{
63 INIT_LIST_HEAD(&file->f_ep_links); 63 INIT_LIST_HEAD(&file->f_ep_links);
64 spin_lock_init(&file->f_ep_lock);
65} 64}
66 65
67 66
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 92734c0012e6..2011600d12c7 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -848,6 +848,7 @@ struct file {
848#define f_dentry f_path.dentry 848#define f_dentry f_path.dentry
849#define f_vfsmnt f_path.mnt 849#define f_vfsmnt f_path.mnt
850 const struct file_operations *f_op; 850 const struct file_operations *f_op;
851 spinlock_t f_lock; /* f_ep_links */
851 atomic_long_t f_count; 852 atomic_long_t f_count;
852 unsigned int f_flags; 853 unsigned int f_flags;
853 fmode_t f_mode; 854 fmode_t f_mode;
@@ -866,7 +867,6 @@ struct file {
866#ifdef CONFIG_EPOLL 867#ifdef CONFIG_EPOLL
867 /* Used by fs/eventpoll.c to link all the hooks to this file */ 868 /* Used by fs/eventpoll.c to link all the hooks to this file */
868 struct list_head f_ep_links; 869 struct list_head f_ep_links;
869 spinlock_t f_ep_lock;
870#endif /* #ifdef CONFIG_EPOLL */ 870#endif /* #ifdef CONFIG_EPOLL */
871 struct address_space *f_mapping; 871 struct address_space *f_mapping;
872#ifdef CONFIG_DEBUG_WRITECOUNT 872#ifdef CONFIG_DEBUG_WRITECOUNT