mm: balloon: use general non-lru movable page feature
Now, VM has a feature to migrate non-lru movable pages so balloon doesn't need custom migration hooks in migrate.c and compaction.c. Instead, this patch implements the page->mapping->a_ops-> {isolate|migrate|putback} functions. With that, we could remove hooks for ballooning in general migration functions and make balloon compaction simple. [akpm@linux-foundation.org: compaction.h requires that the includer first include node.h] Link: http://lkml.kernel.org/r/1464736881-24886-4-git-send-email-minchan@kernel.org Signed-off-by:Gioh Kim <gi-oh.kim@profitbricks.com> Signed-off-by:
Minchan Kim <minchan@kernel.org> Acked-by:
Vlastimil Babka <vbabka@suse.cz> Cc: Rafael Aquini <aquini@redhat.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/virtio/virtio_balloon.c 48 additions, 6 deletionsdrivers/virtio/virtio_balloon.c
- include/linux/balloon_compaction.h 17 additions, 37 deletionsinclude/linux/balloon_compaction.h
- include/uapi/linux/magic.h 1 addition, 0 deletionsinclude/uapi/linux/magic.h
- mm/balloon_compaction.c 17 additions, 77 deletionsmm/balloon_compaction.c
- mm/compaction.c 0 additions, 7 deletionsmm/compaction.c
- mm/migrate.c 2 additions, 17 deletionsmm/migrate.c
- mm/vmscan.c 1 addition, 1 deletionmm/vmscan.c
Loading
Please register or sign in to comment