pm: Implement pm_remove_or_zero_pages()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 29 Mar 2018 15:35:15 +0000 (11:35 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:36:28 +0000 (14:36 -0400)
commita4d7239ac29d9093ef7118969e57e6d8700d13a7
treeedba81fa58e16c13820042cd58c59fd5754fc96d
parent2bd434f65d841b53416355b0d99644e5d7d38486
pm: Implement pm_remove_or_zero_pages()

This is what truncate/hole-punch really wants - best effort, and zero if
all else fails.  pm_remove_contig() tries to do too much, and doesn't
handle the failure cases.

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