Commit 1366cac2 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] use set_current_state in mm

Patch from Robert Love <rml@tech9.net>

There are a couple uses of 'p->state=foo' in mm/ which are open coded.
This patch converts them to the proper [__]set_current_state() function.
parent 55b31e11
......@@ -120,7 +120,7 @@ static inline unsigned long map_new_virtual(struct page *page)
{
DECLARE_WAITQUEUE(wait, current);
current->state = TASK_UNINTERRUPTIBLE;
__set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&pkmap_map_wait, &wait);
spin_unlock(&kmap_lock);
schedule();
......
......@@ -1453,7 +1453,7 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct * vma,
pgd_t *pgd;
pmd_t *pmd;
current->state = TASK_RUNNING;
__set_current_state(TASK_RUNNING);
pgd = pgd_offset(mm, address);
inc_page_state(pgfault);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment