]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm-compaction-do-not-count-migratepages-when-unnecessary-fix
authorVlastimil Babka <vbabka@suse.cz>
Wed, 14 May 2014 00:02:10 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:10 +0000 (10:02 +1000)
commit33aae21e9959267e70d6f20d25e76ee13ac0a3dc
tree801950ea24fb46e43df2d7ee775662e33996205d
parent5f19c624e9d7c73ceaf4d404ec0dec08a0574521
mm-compaction-do-not-count-migratepages-when-unnecessary-fix

list_for_each is enough for counting the list length.  We also avoid
including struct page definition this way.

Suggested-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/compaction.h