summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-09-23 18:54:38 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-10-01 13:57:50 +0200
commit42a387566c567603bafa1ec0c5b71c35cba83e86 (patch)
tree084bea1dd5c9d4f7dde23dee93895bcfabb1df90 /mm
parentsched: Make cond_resched_*lock() variants consistent vs. might_sleep() (diff)
downloadlinux-42a387566c567603bafa1ec0c5b71c35cba83e86.tar.xz
linux-42a387566c567603bafa1ec0c5b71c35cba83e86.zip
sched: Remove preempt_offset argument from __might_sleep()
All callers hand in 0 and never will hand in anything else. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210923165358.054321586@linutronix.de
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 25fc46e87214..1cd1792c00f2 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -5255,7 +5255,7 @@ void __might_fault(const char *file, int line)
return;
if (pagefault_disabled())
return;
- __might_sleep(file, line, 0);
+ __might_sleep(file, line);
#if defined(CONFIG_DEBUG_ATOMIC_SLEEP)
if (current->mm)
might_lock_read(&current->mm->mmap_lock);