summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-06-20 06:06:13 -0400
committerIngo Molnar <mingo@kernel.org>2017-06-20 06:18:27 -0400
commitac6424b981bce1c4bc55675c6ce11bfe1bbfa64f (patch)
treea9312337219777a9d3fb65d4673bbc6b5eeacd9c /fs
parent9705596d08ac87c18aee32cc97f2783b7d14624e (diff)
sched/wait: Rename wait_queue_t => wait_queue_entry_t
Rename: wait_queue_t => wait_queue_entry_t 'wait_queue_t' was always a slight misnomer: its name implies that it's a "queue", but in reality it's a queue *entry*. The 'real' queue is the wait queue head, which had to carry the name. Start sorting this out by renaming it to 'wait_queue_entry_t'. This also allows the real structure name 'struct __wait_queue' to lose its double underscore and become 'struct wait_queue_entry', which is the more canonical nomenclature for such data types. Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/autofs4/autofs_i.h2
-rw-r--r--fs/autofs4/waitq.c18
-rw-r--r--fs/cachefiles/internal.h2
-rw-r--r--fs/cachefiles/namei.c2
-rw-r--r--fs/cachefiles/rdwr.c2
-rw-r--r--fs/dax.c4
-rw-r--r--fs/eventfd.c2
-rw-r--r--fs/eventpoll.c10
-rw-r--r--fs/fs_pin.c2
-rw-r--r--fs/nfs/nfs4proc.c4
-rw-r--r--fs/nilfs2/segment.c2
-rw-r--r--fs/orangefs/orangefs-bufmap.c4
-rw-r--r--fs/reiserfs/journal.c2
-rw-r--r--fs/select.c4
-rw-r--r--fs/signalfd.c2
-rw-r--r--fs/userfaultfd.c8
16 files changed, 35 insertions, 35 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h
index beef981aa54f..974f5346458a 100644
--- a/fs/autofs4/autofs_i.h
+++ b/fs/autofs4/autofs_i.h
@@ -83,7 +83,7 @@ struct autofs_info {
83struct autofs_wait_queue { 83struct autofs_wait_queue {
84 wait_queue_head_t queue; 84 wait_queue_head_t queue;
85 struct autofs_wait_queue *next; 85 struct autofs_wait_queue *next;
86 autofs_wqt_t wait_queue_token; 86 autofs_wqt_t wait_queue_entry_token;
87 /* We use the following to see what we are waiting for */ 87 /* We use the following to see what we are waiting for */
88 struct qstr name; 88 struct qstr name;
89 u32 dev; 89 u32 dev;
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 24a58bf9ca72..7071895b0678 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -104,7 +104,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
104 size_t pktsz; 104 size_t pktsz;
105 105
106 pr_debug("wait id = 0x%08lx, name = %.*s, type=%d\n", 106 pr_debug("wait id = 0x%08lx, name = %.*s, type=%d\n",
107 (unsigned long) wq->wait_queue_token, 107 (unsigned long) wq->wait_queue_entry_token,
108 wq->name.len, wq->name.name, type); 108 wq->name.len, wq->name.name, type);
109 109
110 memset(&pkt, 0, sizeof(pkt)); /* For security reasons */ 110 memset(&pkt, 0, sizeof(pkt)); /* For security reasons */
@@ -120,7 +120,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
120 120
121 pktsz = sizeof(*mp); 121 pktsz = sizeof(*mp);
122 122
123 mp->wait_queue_token = wq->wait_queue_token; 123 mp->wait_queue_entry_token = wq->wait_queue_entry_token;
124 mp->len = wq->name.len; 124 mp->len = wq->name.len;
125 memcpy(mp->name, wq->name.name, wq->name.len); 125 memcpy(mp->name, wq->name.name, wq->name.len);
126 mp->name[wq->name.len] = '\0'; 126 mp->name[wq->name.len] = '\0';
@@ -133,7 +133,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
133 133
134 pktsz = sizeof(*ep); 134 pktsz = sizeof(*ep);
135 135
136 ep->wait_queue_token = wq->wait_queue_token; 136 ep->wait_queue_entry_token = wq->wait_queue_entry_token;
137 ep->len = wq->name.len; 137 ep->len = wq->name.len;
138 memcpy(ep->name, wq->name.name, wq->name.len); 138 memcpy(ep->name, wq->name.name, wq->name.len);
139 ep->name[wq->name.len] = '\0'; 139 ep->name[wq->name.len] = '\0';
@@ -153,7 +153,7 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
153 153
154 pktsz = sizeof(*packet); 154 pktsz = sizeof(*packet);
155 155
156 packet->wait_queue_token = wq->wait_queue_token; 156 packet->wait_queue_entry_token = wq->wait_queue_entry_token;
157 packet->len = wq->name.len; 157 packet->len = wq->name.len;
158 memcpy(packet->name, wq->name.name, wq->name.len); 158 memcpy(packet->name, wq->name.name, wq->name.len);
159 packet->name[wq->name.len] = '\0'; 159 packet->name[wq->name.len] = '\0';
@@ -428,7 +428,7 @@ int autofs4_wait(struct autofs_sb_info *sbi,
428 return -ENOMEM; 428 return -ENOMEM;
429 } 429 }
430 430
431 wq->wait_queue_token = autofs4_next_wait_queue; 431 wq->wait_queue_entry_token = autofs4_next_wait_queue;
432 if (++autofs4_next_wait_queue == 0) 432 if (++autofs4_next_wait_queue == 0)
433 autofs4_next_wait_queue = 1; 433 autofs4_next_wait_queue = 1;
434 wq->next = sbi->queues; 434 wq->next = sbi->queues;
@@ -461,7 +461,7 @@ int autofs4_wait(struct autofs_sb_info *sbi,
461 } 461 }
462 462
463 pr_debug("new wait id = 0x%08lx, name = %.*s, nfy=%d\n", 463 pr_debug("new wait id = 0x%08lx, name = %.*s, nfy=%d\n",
464 (unsigned long) wq->wait_queue_token, wq->name.len, 464 (unsigned long) wq->wait_queue_entry_token, wq->name.len,
465 wq->name.name, notify); 465 wq->name.name, notify);
466 466
467 /* 467 /*
@@ -471,7 +471,7 @@ int autofs4_wait(struct autofs_sb_info *sbi,
471 } else { 471 } else {
472 wq->wait_ctr++; 472 wq->wait_ctr++;
473 pr_debug("existing wait id = 0x%08lx, name = %.*s, nfy=%d\n", 473 pr_debug("existing wait id = 0x%08lx, name = %.*s, nfy=%d\n",
474 (unsigned long) wq->wait_queue_token, wq->name.len, 474 (unsigned long) wq->wait_queue_entry_token, wq->name.len,
475 wq->name.name, notify); 475 wq->name.name, notify);
476 mutex_unlock(&sbi->wq_mutex); 476 mutex_unlock(&sbi->wq_mutex);
477 kfree(qstr.name); 477 kfree(qstr.name);
@@ -550,13 +550,13 @@ int autofs4_wait(struct autofs_sb_info *sbi,
550} 550}
551 551
552 552
553int autofs4_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_token, int status) 553int autofs4_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_entry_token, int status)
554{ 554{
555 struct autofs_wait_queue *wq, **wql; 555 struct autofs_wait_queue *wq, **wql;
556 556
557 mutex_lock(&sbi->wq_mutex); 557 mutex_lock(&sbi->wq_mutex);
558 for (wql = &sbi->queues; (wq = *wql) != NULL; wql = &wq->next) { 558 for (wql = &sbi->queues; (wq = *wql) != NULL; wql = &wq->next) {
559 if (wq->wait_queue_token == wait_queue_token) 559 if (wq->wait_queue_entry_token == wait_queue_entry_token)
560 break; 560 break;
561 } 561 }
562 562
diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h
index 9bf90bcc56ac..54a4fcd679ed 100644
--- a/fs/cachefiles/internal.h
+++ b/fs/cachefiles/internal.h
@@ -97,7 +97,7 @@ struct cachefiles_cache {
97 * backing file read tracking 97 * backing file read tracking
98 */ 98 */
99struct cachefiles_one_read { 99struct cachefiles_one_read {
100 wait_queue_t monitor; /* link into monitored waitqueue */ 100 wait_queue_entry_t monitor; /* link into monitored waitqueue */
101 struct page *back_page; /* backing file page we're waiting for */ 101 struct page *back_page; /* backing file page we're waiting for */
102 struct page *netfs_page; /* netfs page we're going to fill */ 102 struct page *netfs_page; /* netfs page we're going to fill */
103 struct fscache_retrieval *op; /* retrieval op covering this */ 103 struct fscache_retrieval *op; /* retrieval op covering this */
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
index 41df8a27d7eb..3978b324cbca 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -204,7 +204,7 @@ wait_for_old_object:
204 wait_queue_head_t *wq; 204 wait_queue_head_t *wq;
205 205
206 signed long timeout = 60 * HZ; 206 signed long timeout = 60 * HZ;
207 wait_queue_t wait; 207 wait_queue_entry_t wait;
208 bool requeue; 208 bool requeue;
209 209
210 /* if the object we're waiting for is queued for processing, 210 /* if the object we're waiting for is queued for processing,
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
index afbdc418966d..8be33b33b981 100644
--- a/fs/cachefiles/rdwr.c
+++ b/fs/cachefiles/rdwr.c
@@ -21,7 +21,7 @@
21 * - we use this to detect read completion of backing pages 21 * - we use this to detect read completion of backing pages
22 * - the caller holds the waitqueue lock 22 * - the caller holds the waitqueue lock
23 */ 23 */
24static int cachefiles_read_waiter(wait_queue_t *wait, unsigned mode, 24static int cachefiles_read_waiter(wait_queue_entry_t *wait, unsigned mode,
25 int sync, void *_key) 25 int sync, void *_key)
26{ 26{
27 struct cachefiles_one_read *monitor = 27 struct cachefiles_one_read *monitor =
diff --git a/fs/dax.c b/fs/dax.c
index 2a6889b3585f..323ea481d4a8 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -84,7 +84,7 @@ struct exceptional_entry_key {
84}; 84};
85 85
86struct wait_exceptional_entry_queue { 86struct wait_exceptional_entry_queue {
87 wait_queue_t wait; 87 wait_queue_entry_t wait;
88 struct exceptional_entry_key key; 88 struct exceptional_entry_key key;
89}; 89};
90 90
@@ -108,7 +108,7 @@ static wait_queue_head_t *dax_entry_waitqueue(struct address_space *mapping,
108 return wait_table + hash; 108 return wait_table + hash;
109} 109}
110 110
111static int wake_exceptional_entry_func(wait_queue_t *wait, unsigned int mode, 111static int wake_exceptional_entry_func(wait_queue_entry_t *wait, unsigned int mode,
112 int sync, void *keyp) 112 int sync, void *keyp)
113{ 113{
114 struct exceptional_entry_key *key = keyp; 114 struct exceptional_entry_key *key = keyp;
diff --git a/fs/eventfd.c b/fs/eventfd.c
index 68b9fffcb2c8..9736df2ce89d 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -191,7 +191,7 @@ static void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt)
191 * This is used to atomically remove a wait queue entry from the eventfd wait 191 * This is used to atomically remove a wait queue entry from the eventfd wait
192 * queue head, and read/reset the counter value. 192 * queue head, and read/reset the counter value.
193 */ 193 */
194int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, 194int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait,
195 __u64 *cnt) 195 __u64 *cnt)
196{ 196{
197 unsigned long flags; 197 unsigned long flags;
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index 5420767c9b68..5ac1cba5ef72 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -244,7 +244,7 @@ struct eppoll_entry {
244 * Wait queue item that will be linked to the target file wait 244 * Wait queue item that will be linked to the target file wait
245 * queue head. 245 * queue head.
246 */ 246 */
247 wait_queue_t wait; 247 wait_queue_entry_t wait;
248 248
249 /* The wait queue head that linked the "wait" wait queue item */ 249 /* The wait queue head that linked the "wait" wait queue item */
250 wait_queue_head_t *whead; 250 wait_queue_head_t *whead;
@@ -347,13 +347,13 @@ static inline int ep_is_linked(struct list_head *p)
347 return !list_empty(p); 347 return !list_empty(p);
348} 348}
349 349
350static inline struct eppoll_entry *ep_pwq_from_wait(wait_queue_t *p) 350static inline struct eppoll_entry *ep_pwq_from_wait(wait_queue_entry_t *p)
351{ 351{
352 return container_of(p, struct eppoll_entry, wait); 352 return container_of(p, struct eppoll_entry, wait);
353} 353}
354 354
355/* Get the "struct epitem" from a wait queue pointer */ 355/* Get the "struct epitem" from a wait queue pointer */
356static inline struct epitem *ep_item_from_wait(wait_queue_t *p) 356static inline struct epitem *ep_item_from_wait(wait_queue_entry_t *p)
357{ 357{
358 return container_of(p, struct eppoll_entry, wait)->base; 358 return container_of(p, struct eppoll_entry, wait)->base;
359} 359}
@@ -1078,7 +1078,7 @@ static struct epitem *ep_find(struct eventpoll *ep, struct file *file, int fd)
1078 * mechanism. It is called by the stored file descriptors when they 1078 * mechanism. It is called by the stored file descriptors when they
1079 * have events to report. 1079 * have events to report.
1080 */ 1080 */
1081static int ep_poll_callback(wait_queue_t *wait, unsigned mode, int sync, void *key) 1081static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
1082{ 1082{
1083 int pwake = 0; 1083 int pwake = 0;
1084 unsigned long flags; 1084 unsigned long flags;
@@ -1699,7 +1699,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
1699 int res = 0, eavail, timed_out = 0; 1699 int res = 0, eavail, timed_out = 0;
1700 unsigned long flags; 1700 unsigned long flags;
1701 u64 slack = 0; 1701 u64 slack = 0;
1702 wait_queue_t wait; 1702 wait_queue_entry_t wait;
1703 ktime_t expires, *to = NULL; 1703 ktime_t expires, *to = NULL;
1704 1704
1705 if (timeout > 0) { 1705 if (timeout > 0) {
diff --git a/fs/fs_pin.c b/fs/fs_pin.c
index 611b5408f6ec..7b447a245760 100644
--- a/fs/fs_pin.c
+++ b/fs/fs_pin.c
@@ -34,7 +34,7 @@ void pin_insert(struct fs_pin *pin, struct vfsmount *m)
34 34
35void pin_kill(struct fs_pin *p) 35void pin_kill(struct fs_pin *p)
36{ 36{
37 wait_queue_t wait; 37 wait_queue_entry_t wait;
38 38
39 if (!p) { 39 if (!p) {
40 rcu_read_unlock(); 40 rcu_read_unlock();
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index c08c46a3b8cd..be5a8f84e5bb 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -6372,7 +6372,7 @@ struct nfs4_lock_waiter {
6372}; 6372};
6373 6373
6374static int 6374static int
6375nfs4_wake_lock_waiter(wait_queue_t *wait, unsigned int mode, int flags, void *key) 6375nfs4_wake_lock_waiter(wait_queue_entry_t *wait, unsigned int mode, int flags, void *key)
6376{ 6376{
6377 int ret; 6377 int ret;
6378 struct cb_notify_lock_args *cbnl = key; 6378 struct cb_notify_lock_args *cbnl = key;
@@ -6415,7 +6415,7 @@ nfs4_retry_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
6415 .inode = state->inode, 6415 .inode = state->inode,
6416 .owner = &owner, 6416 .owner = &owner,
6417 .notified = false }; 6417 .notified = false };
6418 wait_queue_t wait; 6418 wait_queue_entry_t wait;
6419 6419
6420 /* Don't bother with waitqueue if we don't expect a callback */ 6420 /* Don't bother with waitqueue if we don't expect a callback */
6421 if (!test_bit(NFS_STATE_MAY_NOTIFY_LOCK, &state->flags)) 6421 if (!test_bit(NFS_STATE_MAY_NOTIFY_LOCK, &state->flags))
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index febed1217b3f..775304e7f96f 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -2161,7 +2161,7 @@ void nilfs_flush_segment(struct super_block *sb, ino_t ino)
2161} 2161}
2162 2162
2163struct nilfs_segctor_wait_request { 2163struct nilfs_segctor_wait_request {
2164 wait_queue_t wq; 2164 wait_queue_entry_t wq;
2165 __u32 seq; 2165 __u32 seq;
2166 int err; 2166 int err;
2167 atomic_t done; 2167 atomic_t done;
diff --git a/fs/orangefs/orangefs-bufmap.c b/fs/orangefs/orangefs-bufmap.c
index 83b506020718..9e37b7028ea4 100644
--- a/fs/orangefs/orangefs-bufmap.c
+++ b/fs/orangefs/orangefs-bufmap.c
@@ -47,7 +47,7 @@ static void run_down(struct slot_map *m)
47 if (m->c != -1) { 47 if (m->c != -1) {
48 for (;;) { 48 for (;;) {
49 if (likely(list_empty(&wait.task_list))) 49 if (likely(list_empty(&wait.task_list)))
50 __add_wait_queue_tail(&m->q, &wait); 50 __add_wait_queue_entry_tail(&m->q, &wait);
51 set_current_state(TASK_UNINTERRUPTIBLE); 51 set_current_state(TASK_UNINTERRUPTIBLE);
52 52
53 if (m->c == -1) 53 if (m->c == -1)
@@ -85,7 +85,7 @@ static int wait_for_free(struct slot_map *m)
85 do { 85 do {
86 long n = left, t; 86 long n = left, t;
87 if (likely(list_empty(&wait.task_list))) 87 if (likely(list_empty(&wait.task_list)))
88 __add_wait_queue_tail_exclusive(&m->q, &wait); 88 __add_wait_queue_entry_tail_exclusive(&m->q, &wait);
89 set_current_state(TASK_INTERRUPTIBLE); 89 set_current_state(TASK_INTERRUPTIBLE);
90 90
91 if (m->c > 0) 91 if (m->c > 0)
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index 39bb1e838d8d..a11d773e5ff3 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -2956,7 +2956,7 @@ void reiserfs_wait_on_write_block(struct super_block *s)
2956 2956
2957static void queue_log_writer(struct super_block *s) 2957static void queue_log_writer(struct super_block *s)
2958{ 2958{
2959 wait_queue_t wait; 2959 wait_queue_entry_t wait;
2960 struct reiserfs_journal *journal = SB_JOURNAL(s); 2960 struct reiserfs_journal *journal = SB_JOURNAL(s);
2961 set_bit(J_WRITERS_QUEUED, &journal->j_state); 2961 set_bit(J_WRITERS_QUEUED, &journal->j_state);
2962 2962
diff --git a/fs/select.c b/fs/select.c
index d6c652a31e99..5b524a977d91 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -180,7 +180,7 @@ static struct poll_table_entry *poll_get_entry(struct poll_wqueues *p)
180 return table->entry++; 180 return table->entry++;
181} 181}
182 182
183static int __pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) 183static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
184{ 184{
185 struct poll_wqueues *pwq = wait->private; 185 struct poll_wqueues *pwq = wait->private;
186 DECLARE_WAITQUEUE(dummy_wait, pwq->polling_task); 186 DECLARE_WAITQUEUE(dummy_wait, pwq->polling_task);
@@ -206,7 +206,7 @@ static int __pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key)
206 return default_wake_function(&dummy_wait, mode, sync, key); 206 return default_wake_function(&dummy_wait, mode, sync, key);
207} 207}
208 208
209static int pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) 209static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
210{ 210{
211 struct poll_table_entry *entry; 211 struct poll_table_entry *entry;
212 212
diff --git a/fs/signalfd.c b/fs/signalfd.c
index 7e3d71109f51..593b022ac11b 100644
--- a/fs/signalfd.c
+++ b/fs/signalfd.c
@@ -43,7 +43,7 @@ void signalfd_cleanup(struct sighand_struct *sighand)
43 if (likely(!waitqueue_active(wqh))) 43 if (likely(!waitqueue_active(wqh)))
44 return; 44 return;
45 45
46 /* wait_queue_t->func(POLLFREE) should do remove_wait_queue() */ 46 /* wait_queue_entry_t->func(POLLFREE) should do remove_wait_queue() */
47 wake_up_poll(wqh, POLLHUP | POLLFREE); 47 wake_up_poll(wqh, POLLHUP | POLLFREE);
48} 48}
49 49
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
index 1d622f276e3a..bda64fcd8a0c 100644
--- a/fs/userfaultfd.c
+++ b/fs/userfaultfd.c
@@ -81,7 +81,7 @@ struct userfaultfd_unmap_ctx {
81 81
82struct userfaultfd_wait_queue { 82struct userfaultfd_wait_queue {
83 struct uffd_msg msg; 83 struct uffd_msg msg;
84 wait_queue_t wq; 84 wait_queue_entry_t wq;
85 struct userfaultfd_ctx *ctx; 85 struct userfaultfd_ctx *ctx;
86 bool waken; 86 bool waken;
87}; 87};
@@ -91,7 +91,7 @@ struct userfaultfd_wake_range {
91 unsigned long len; 91 unsigned long len;
92}; 92};
93 93
94static int userfaultfd_wake_function(wait_queue_t *wq, unsigned mode, 94static int userfaultfd_wake_function(wait_queue_entry_t *wq, unsigned mode,
95 int wake_flags, void *key) 95 int wake_flags, void *key)
96{ 96{
97 struct userfaultfd_wake_range *range = key; 97 struct userfaultfd_wake_range *range = key;
@@ -860,7 +860,7 @@ wakeup:
860static inline struct userfaultfd_wait_queue *find_userfault_in( 860static inline struct userfaultfd_wait_queue *find_userfault_in(
861 wait_queue_head_t *wqh) 861 wait_queue_head_t *wqh)
862{ 862{
863 wait_queue_t *wq; 863 wait_queue_entry_t *wq;
864 struct userfaultfd_wait_queue *uwq; 864 struct userfaultfd_wait_queue *uwq;
865 865
866 VM_BUG_ON(!spin_is_locked(&wqh->lock)); 866 VM_BUG_ON(!spin_is_locked(&wqh->lock));
@@ -1747,7 +1747,7 @@ static long userfaultfd_ioctl(struct file *file, unsigned cmd,
1747static void userfaultfd_show_fdinfo(struct seq_file *m, struct file *f) 1747static void userfaultfd_show_fdinfo(struct seq_file *m, struct file *f)
1748{ 1748{
1749 struct userfaultfd_ctx *ctx = f->private_data; 1749 struct userfaultfd_ctx *ctx = f->private_data;
1750 wait_queue_t *wq; 1750 wait_queue_entry_t *wq;
1751 struct userfaultfd_wait_queue *uwq; 1751 struct userfaultfd_wait_queue *uwq;
1752 unsigned long pending = 0, total = 0; 1752 unsigned long pending = 0, total = 0;
1753 1753