pm: Add a stub for pm_destroy()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 1 Mar 2018 19:31:38 +0000 (14:31 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:29:22 +0000 (14:29 -0400)
The lack of a pm_destroy() was a little disturbing.  The PM code needs an
overhaul, which I'll get to later.  This stub is needed for the fs_file
work.

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

index 4aac3ab..460ccbc 100644 (file)
@@ -66,5 +66,6 @@ void pm_add_vmr(struct page_map *pm, struct vm_region *vmr);
 void pm_remove_vmr(struct page_map *pm, struct vm_region *vmr);
 int pm_remove_contig(struct page_map *pm, unsigned long index,
                      unsigned long nr_pgs);
+void pm_destroy(struct page_map *pm);
 void pm_page_asserter(struct page *page, char *str);
 void print_page_map_info(struct page_map *pm);
index ae69a84..c22b41e 100644 (file)
@@ -612,6 +612,11 @@ handle_dirty:
        return nr_removed;
 }
 
+void pm_destroy(struct page_map *pm)
+{
+       /* TODO: implement me! */
+}
+
 void print_page_map_info(struct page_map *pm)
 {
        struct vm_region *vmr_i;