[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1404508083.2457.15.camel@buesod1.americas.hpqcorp.net>
Date: Fri, 04 Jul 2014 14:08:03 -0700
From: Davidlohr Bueso <davidlohr@...com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: davidlohr@...com, linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: [PATCH] mm,vmacache: inline vmacache_valid_mm()
From: Davidlohr Bueso <davidlohr@...com>
No brainer for this little function.
Signed-off-by: Davidlohr Bueso <davidlohr@...com>
---
mm/vmacache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmacache.c b/mm/vmacache.c
index 9f25af8..e72b8ee 100644
--- a/mm/vmacache.c
+++ b/mm/vmacache.c
@@ -50,7 +50,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);
}
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists