]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm-compaction-do-not-count-migratepages-when-unnecessary-fix
authorVlastimil Babka <vbabka@suse.cz>
Thu, 22 May 2014 00:43:14 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:14 +0000 (10:43 +1000)
commit0a27fde47a7c3d4f744708e3bbfa273812c40259
tree23e6bc9cd1112894e23d5f651a09f2aa8ecce954
parentc65f27f82f7ef35d34dcee5eec1b63c7acb96022
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