]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, vmalloc: constify allocation mask
authorDavid Rientjes <rientjes@google.com>
Thu, 26 Jun 2014 00:42:42 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:42 +0000 (10:42 +1000)
commit4834fd7ab2481deb85d455154638408db1ee5b90
tree37a76face3f28f4d2b17fe5e07172f7b0903ebc3
parent4a51c3c380e91784ae55583b1a329bc1fbbd541a
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>
mm/vmalloc.c