Re: [RFC PATCH] mm/swap: fix swap table count encoding for empty slots

From: gaoguixing

Date: Fri Sep 04 2026 - 08:13:17 EST


Hello,

Sorry for the confusion and for sending the RFC without sufficient
context.

You are correct: __swap_table_update_count() comes from my local 6.18.y
adaptation and is not present in the upstream series. The issue is in my
adaptation, which incorrectly passed a count-only value to a helper that
expects the complete flags field.

The current diff is therefore not directly applicable upstream. Please
disregard it for now. I will rebase the adaptation onto the upstream
series, verify the issue independently, and send a proper patch with the
necessary rationale and test results.

Thank you for pointing this out.

Best regards,
Guoxing