On Wed, Mar 12, 2025 at 09:47:49AM -0700, SeongJae Park wrote: > The logic for checking if a given madvise() request for a single memory > range can skip real work, namely madvise_do_behavior(), is duplicated in > do_madvise() and vector_madvise(). Split out the logic to a function > and reuse it. > > Signed-off-by: SeongJae Park <sj@xxxxxxxxxx> > Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> Reviewed-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>