]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mempolicy.c:offset_il_node() document and clarify
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 20 May 2016 00:11:43 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit83e70784c010674c45f977e0b076170fbad7006d
treef0b43899dfc3383cf8c73c10eaf9079972066f87
parent7e42fa4b3d8e8becd5b233b81db1a9e07f770aa2
mm/mempolicy.c:offset_il_node() document and clarify

This code was pretty obscure and was relying upon obscure side-effects
of next_node(-1, ...) and was relying upon NUMA_NO_NODE being equal to
-1.

Clean that all up and document the function's intent.

Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c