]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmacache: inline vmacache_valid_mm()
authorDavidlohr Bueso <dave@stgolabs.net>
Fri, 6 Nov 2015 02:48:52 +0000 (18:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit0456759b585ed6d22f3121d199b92e48d5756f19
tree0fcd7d2cdf6cf11521f0bb9667ff0cd9ef2350d1
parentdb3665501faf6c09fca84e8eb4da97081a555348
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 <dbueso@suse.de>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmacache.c