Re: [PATCH 1/2] mm/madvise: allow process_madvise operations on entire memory range
From: Christoph Hellwig
Date: Wed Dec 23 2020 - 02:58:13 EST
On Tue, Dec 22, 2020 at 09:48:43AM -0800, Suren Baghdasaryan wrote:
> Thanks for the feedback! The use case is userspace memory reaping
> similar to oom-reaper. Detailed justification is here:
> https://lore.kernel.org/linux-mm/20201124053943.1684874-1-surenb@xxxxxxxxxx
Given that this new variant of process_madvise
a) does not work on an address range
b) is destructive
c) doesn't share much code at all with the rest of process_madvise
Why not add a proper separate syscall?