From: Ralph Campbell Date: Mon, 08 Mar 2021 18:39:19 +0000 Subject: Re: [PATCH v4 3/8] mm/rmap: Split try_to_munlock from try_to_unmap Message-Id: <547dda23-ac57-559e-664f-172e3d6749d5@nvidia.com> List-Id: References: <20210304061645.29747-1-apopple@nvidia.com> <20210304061645.29747-4-apopple@nvidia.com> In-Reply-To: <20210304061645.29747-4-apopple@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alistair Popple , linux-mm@kvack.org, nouveau@lists.freedesktop.org, bskeggs@redhat.com, akpm@linux-foundation.org Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, dri-devel@lists.freedesktop.org, jhubbard@nvidia.com, jglisse@redhat.com 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 Looks good to me. Reviewed-by: Ralph Campbell