Re: [PATCH -V2 4/5] swap: remove get/put_swap_device() in __swap_duplicate()

From: David Hildenbrand
Date: Tue May 23 2023 - 04:09:06 EST


On 23.05.23 02:56, Huang, Ying wrote:
David Hildenbrand <david@xxxxxxxxxx> writes:

On 22.05.23 09:09, Huang Ying wrote:
__swap_duplicate() is called by
- swap_shmem_alloc(): the page lock of the swap cache is held.

page lock of the swap cache? Did you really mean to say that or am I
confused?

"Page lock of the page that is in the swap cache?"

Sorry for my poor English. Or make it shorter?

"the folio in the swap cache is locked"

Much clearer, thanks.

--
Thanks,

David / dhildenb