]> git.baikalelectronics.ru Git - kernel.git/commit
mm, vmalloc: constify allocation mask
authorDavid Rientjes <rientjes@google.com>
Wed, 6 Aug 2014 23:06:28 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:18 +0000 (18:01 -0700)
commit643a2f665e8d98139fae08437f966f753e34e7d5
treef689223089016c430954b96e7c73f1c32502f68d
parentef741aab8d744c8ace6cb9475ab7abad0c395dca
mm, vmalloc: constify allocation mask

tmp_mask in the __vmalloc_area_node() iteration never changes so it can
be moved into function scope and marked with const.  This causes the
movl and orl to only be done once per call rather than area->nr_pages
times.

nested_gfp can also be marked const.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c