On Thu, Mar 23, 2023 at 02:56:24PM +0800, Huang, Ying wrote: > > > > Let's assume the swap entry in device A has more than one user. > > e.g. Swap entry A1 on device A is shared by three different > > process. It is installed in three PTE locations. > > With indirection, the swap ID (swap_desc index) will be installed in > PTEs instead of the swap entry itself. Thanks for the clarification. If we have swap_desc index in the PTE, let's call it S1. I assume S1 will contain A1 and B1 as part of the swap_desc struct. Now we are getting to some very interesting details. What is the life cycle of the S1? Does S1 share the same index as A1? Chris