Re: [PATCH v4 2/3] mm, swap: reduce indention for hibernate allocation helper

From: Kairui Song

Date: Wed Feb 18 2026 - 03:59:05 EST


On Wed, Feb 18, 2026 at 4:23 PM Barry Song <21cnbao@xxxxxxxxx> wrote:
>
> On Mon, Feb 16, 2026 at 10:58 PM Kairui Song via B4 Relay
> <devnull+kasong.tencent.com@xxxxxxxxxx> wrote:
> [...]
> > + /* Return empty entry if device is not usable (swapoff or full) */
>
> I feel like swap full only affects the swap_avail_head /
> swap_available list. Does it also make
> get_swap_device_info() return false?

Yeah you are right, full swap device doesn't affect
get_swap_device_info here so the comment isn't that accurate. I'll
update the comment later after 1/3 is moved to stable. Thanks!