mm, compaction: cleanup unused functions
authorVlastimil Babka <[email protected]>
Fri, 7 Oct 2016 23:57:38 +0000 (16:57 -0700)
committerLinus Torvalds <[email protected]>
Sat, 8 Oct 2016 01:46:27 +0000 (18:46 -0700)
commit791cae9620e35d18df2cedf2bd444920c3ecf04a
treefc234a178d73f3e70ff4598cc35041ab494158db
parent06ed29989f39f5129d4f76f4a2d7ce2efa46a6a1
mm, compaction: cleanup unused functions

Since kswapd compaction moved to kcompactd, compact_pgdat() is not
called anymore, so we remove it.  The only caller of __compact_pgdat()
is compact_node(), so we merge them and remove code that was only
reachable from kswapd.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Vlastimil Babka <[email protected]>
Tested-by: Lorenzo Stoakes <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/compaction.h
mm/compaction.c