Commit e34d6077 authored by Thomas Gleixner's avatar Thomas Gleixner

mm: Remove preempt count from pagefault disable/enable

Now that all users are cleaned up, we can remove the preemption count.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 327994e1
...@@ -2957,7 +2957,6 @@ unlock: ...@@ -2957,7 +2957,6 @@ unlock:
void pagefault_disable(void) void pagefault_disable(void)
{ {
inc_preempt_count();
current->pagefault_disabled++; current->pagefault_disabled++;
/* /*
* make sure to have issued the store before a pagefault * make sure to have issued the store before a pagefault
...@@ -2975,12 +2974,6 @@ void pagefault_enable(void) ...@@ -2975,12 +2974,6 @@ void pagefault_enable(void)
*/ */
barrier(); barrier();
current->pagefault_disabled--; current->pagefault_disabled--;
dec_preempt_count();
/*
* make sure we do..
*/
barrier();
preempt_check_resched();
} }
EXPORT_SYMBOL(pagefault_enable); EXPORT_SYMBOL(pagefault_enable);
......
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