| .. | .. |
|---|
| 6 | 6 | #include <linux/sched/task.h> |
|---|
| 7 | 7 | #include <linux/mm.h> |
|---|
| 8 | 8 | #include <linux/vmacache.h> |
|---|
| 9 | | -#include <asm/pgtable.h> |
|---|
| 10 | 9 | |
|---|
| 11 | 10 | /* |
|---|
| 12 | 11 | * Hash based on the pmd of addr if configured with MMU, which provides a good |
|---|
| .. | .. |
|---|
| 25 | 24 | * task's vmacache pertains to a different mm (ie, its own). There is |
|---|
| 26 | 25 | * nothing we can do here. |
|---|
| 27 | 26 | * |
|---|
| 28 | | - * Also handle the case where a kernel thread has adopted this mm via use_mm(). |
|---|
| 29 | | - * That kernel thread's vmacache is not applicable to this mm. |
|---|
| 27 | + * Also handle the case where a kernel thread has adopted this mm via |
|---|
| 28 | + * kthread_use_mm(). That kernel thread's vmacache is not applicable to this mm. |
|---|
| 30 | 29 | */ |
|---|
| 31 | 30 | static inline bool vmacache_valid_mm(struct mm_struct *mm) |
|---|
| 32 | 31 | { |
|---|