On Sun, Jun 16, 2024 at 4:54 PM Christoph Hellwig <hch@xxxxxx> wrote: > > On Sun, Jun 16, 2024 at 12:16:10PM +1200, Barry Song wrote: > > As I understand it, this isn't happening because we don't support > > mTHP swapping out to a swapfile, whether it's on NFS or any > > other filesystem. > > It does happen. The reason why I sent this patch is becaue I observed > the BUG_ON trigger on a trivial swap generation workload (usemem.c from > xfstests). This is quite unusual. Could you share your setup and backtrace? I'd like to reproduce the issue, as the mm code only supports mTHP swapout on block devices. What is your swap device or swap file? Additionally, on what kind of filesystem is the executable file built from usemem.c located? >