Re: [PATCH v5 01/11] mm, swap: add virtual swap device infrastructure

From: Rik van Riel

Date: Thu Sep 24 2026 - 21:16:21 EST


On Thu, 2026-09-24 at 14:43 -1000, Chris Li wrote:
> On Thu, Sep 24, 2026 at 6:20 AM Nhat Pham <nphamcs@xxxxxxxxx> wrote:
> >
>
> > It is needed because vswap *is* a special device, with its own
> > requirements. If you don't special case-it, you'd get undesirable
> > behaviors.
>
> Ack, that is why I am against making it a special device. That is the
> whole idea behind xswap. It is just normal swap device implemented
> via
> swap_ops just like ext4 is a file system implemnet on top of VFS.

The filesystem layer is relatively clean because
it has a VFS.

Are you saying it is time we have a similar
abstraction layer on the swap side?

--
All Rights Reversed.