mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm/vmacache: inline vmacache_valid_mm()
This function incurs in very hot paths and merely does a few loads for validity check. Lets inline it, such that we can save the function call overhead. (akpm: this is cosmetic - the compiler already inlines vmacache_valid_mm()) Signed-off-by: Davidlohr Bueso <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f7ae3a95ea
commit
a2c1aad3b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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().
|
||||
* 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue