[PATCH v4 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

Ralph Campbell rcampbell at nvidia.com
Mon Mar 8 18:39:19 UTC 2021


On 3/3/21 10:16 PM, Alistair Popple wrote:
> The behaviour of try_to_unmap_one() is difficult to follow because it
> performs different operations based on a fairly large set of flags used
> in different combinations.
> 
> TTU_MUNLOCK is one such flag. However it is exclusively used by
> try_to_munlock() which specifies no other flags. Therefore rather than
> overload try_to_unmap_one() with unrelated behaviour split this out into
> it's own function and remove the flag.
> 
> Signed-off-by: Alistair Popple <apopple at nvidia.com>

Looks good to me.
Reviewed-by: Ralph Campbell <rcampbell at nvidia.com>


More information about the dri-devel mailing list