aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 742034e56100..aea58e983a73 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -800,10 +800,10 @@ struct wait_page_key {
800struct wait_page_queue { 800struct wait_page_queue {
801 struct page *page; 801 struct page *page;
802 int bit_nr; 802 int bit_nr;
803 wait_queue_t wait; 803 wait_queue_entry_t wait;
804}; 804};
805 805
806static int wake_page_function(wait_queue_t *wait, unsigned mode, int sync, void *arg) 806static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg)
807{ 807{
808 struct wait_page_key *key = arg; 808 struct wait_page_key *key = arg;
809 struct wait_page_queue *wait_page 809 struct wait_page_queue *wait_page
@@ -866,7 +866,7 @@ static inline int wait_on_page_bit_common(wait_queue_head_t *q,
866 struct page *page, int bit_nr, int state, bool lock) 866 struct page *page, int bit_nr, int state, bool lock)
867{ 867{
868 struct wait_page_queue wait_page; 868 struct wait_page_queue wait_page;
869 wait_queue_t *wait = &wait_page.wait; 869 wait_queue_entry_t *wait = &wait_page.wait;
870 int ret = 0; 870 int ret = 0;
871 871
872 init_wait(wait); 872 init_wait(wait);
@@ -877,9 +877,9 @@ static inline int wait_on_page_bit_common(wait_queue_head_t *q,
877 for (;;) { 877 for (;;) {
878 spin_lock_irq(&q->lock); 878 spin_lock_irq(&q->lock);
879 879
880 if (likely(list_empty(&wait->task_list))) { 880 if (likely(list_empty(&wait->entry))) {
881 if (lock) 881 if (lock)
882 __add_wait_queue_tail_exclusive(q, wait); 882 __add_wait_queue_entry_tail_exclusive(q, wait);
883 else 883 else
884 __add_wait_queue(q, wait); 884 __add_wait_queue(q, wait);
885 SetPageWaiters(page); 885 SetPageWaiters(page);
@@ -939,7 +939,7 @@ int wait_on_page_bit_killable(struct page *page, int bit_nr)
939 * 939 *
940 * Add an arbitrary @waiter to the wait queue for the nominated @page. 940 * Add an arbitrary @waiter to the wait queue for the nominated @page.
941 */ 941 */
942void add_page_wait_queue(struct page *page, wait_queue_t *waiter) 942void add_page_wait_queue(struct page *page, wait_queue_entry_t *waiter)
943{ 943{
944 wait_queue_head_t *q = page_waitqueue(page); 944 wait_queue_head_t *q = page_waitqueue(page);
945 unsigned long flags; 945 unsigned long flags;