diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
| commit | d62e54abca1146981fc9f98f85ff398a113a22c2 (patch) | |
| tree | 870420dbc4c65e716dcef8a802aafdc0ef97a8b4 /include/linux/eventpoll.h | |
| parent | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (diff) | |
| parent | ce362c009250340358a7221f3cdb7954cbf19c01 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'include/linux/eventpoll.h')
| -rw-r--r-- | include/linux/eventpoll.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h index 1289f0ec4c00..1e4bdfcf83a2 100644 --- a/include/linux/eventpoll.h +++ b/include/linux/eventpoll.h | |||
| @@ -52,7 +52,12 @@ struct file; | |||
| 52 | #ifdef CONFIG_EPOLL | 52 | #ifdef CONFIG_EPOLL |
| 53 | 53 | ||
| 54 | /* Used to initialize the epoll bits inside the "struct file" */ | 54 | /* Used to initialize the epoll bits inside the "struct file" */ |
| 55 | void eventpoll_init_file(struct file *file); | 55 | static inline void eventpoll_init_file(struct file *file) |
| 56 | { | ||
| 57 | INIT_LIST_HEAD(&file->f_ep_links); | ||
| 58 | spin_lock_init(&file->f_ep_lock); | ||
| 59 | } | ||
| 60 | |||
| 56 | 61 | ||
| 57 | /* Used to release the epoll bits inside the "struct file" */ | 62 | /* Used to release the epoll bits inside the "struct file" */ |
| 58 | void eventpoll_release_file(struct file *file); | 63 | void eventpoll_release_file(struct file *file); |
| @@ -85,7 +90,6 @@ static inline void eventpoll_release(struct file *file) | |||
| 85 | eventpoll_release_file(file); | 90 | eventpoll_release_file(file); |
| 86 | } | 91 | } |
| 87 | 92 | ||
| 88 | |||
| 89 | #else | 93 | #else |
| 90 | 94 | ||
| 91 | static inline void eventpoll_init_file(struct file *file) {} | 95 | static inline void eventpoll_init_file(struct file *file) {} |
