pm: Add pm_free_unused_pages()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 3 Apr 2018 19:38:50 +0000 (15:38 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:36:28 +0000 (14:36 -0400)
commitb546be54d20d0d22f9836c34d526b58798649768
treeccc7eaca09e93510077d48ac4ac02a6bbd758333
parent7472d9c0ba1b21074e9b1e9cbd85b388e26c5067
pm: Add pm_free_unused_pages()

Devices can call this if they want to free a little memory.  It's a little
niche, since it only really helps with open files that are not mmapped.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/pagemap.h
kern/src/mm.c
kern/src/pagemap.c