pm: Implement pm_destroy()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 29 Mar 2018 15:33:57 +0000 (11:33 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:36:28 +0000 (14:36 -0400)
commit2bd434f65d841b53416355b0d99644e5d7d38486
tree13e0221054191eb90d5e1cd82a13e89b662b52cb
parentbb71906d1d1de0bb59e23b3855879589334ebd92
pm: Implement pm_destroy()

We had been just leaking memory.  Though it is hard to see this, since all
of the pages are actually just sitting in slab magazines, and not freed all
the way back to the arenas.

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