|
@@ -52,7 +52,7 @@ void vmacache_flush_all(struct mm_struct *mm)
|
|
* Also handle the case where a kernel thread has adopted this mm via use_mm().
|
|
* Also handle the case where a kernel thread has adopted this mm via use_mm().
|
|
* That kernel thread's vmacache is not applicable to this mm.
|
|
* That kernel thread's vmacache is not applicable to this mm.
|
|
*/
|
|
*/
|
|
-static bool vmacache_valid_mm(struct mm_struct *mm)
|
|
|
|
|
|
+static inline bool vmacache_valid_mm(struct mm_struct *mm)
|
|
{
|
|
{
|
|
return current->mm == mm && !(current->flags & PF_KTHREAD);
|
|
return current->mm == mm && !(current->flags & PF_KTHREAD);
|
|
}
|
|
}
|