Re: [PATCH v4 2/3] mm, swap: reduce indention for hibernate allocation helper
From: Barry Song
Date: Wed Feb 18 2026 - 03:23:41 EST
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?
> + if (!si || !get_swap_device_info(si))
> + return entry;
Best Regards
Barry