pm: Add pm_writeback_pages()
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Apr 2018 18:58:23 +0000 (14:58 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:36:28 +0000 (14:36 -0400)
commit7472d9c0ba1b21074e9b1e9cbd85b388e26c5067
tree3d9233f31e38a5e30c23a889b8e9932c1069d78e
parent273fcb848e44505c74c2eb1165db408e056999d3
pm: Add pm_writeback_pages()

This allows a TFS/user to writeback an individual file.  It required a few
changes, mostly to buggy PM helpers.  I think pm_remove_contig() isn't
doing the right thing for ranges where index isn't in the VMR, but the
range is.  Not a huge deal - that code is going away soon.

Single-page WB is a little slow, though the real slowdown is using a 9p
server - individual writes take forever.

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