From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lgeamrelo07.lge.com (lgeamrelo07.lge.com [156.147.51.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6907717BB21 for ; Thu, 6 Aug 2026 19:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.147.51.103 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786045653; cv=none; b=kWAZ69+x29GCUKVBl62+OAPf5r8DfSaRAJPHtQpsKIASSPNyKYRSBC4kgVMf7qchlORr4L3bgMSSmnkb6yjUFMjCe0CqCNq2eRwq9lwB28aUTSMcE7BAF+wuIZUQJbOsCVt3HsxMlT+sheB8bHrvwWWj5xdP4csRIIZ3y2RsL0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786045653; c=relaxed/simple; bh=QQKjo93ZuzovifOR8s6LG813NUTc/wmSy6fhf8EJuIc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J1GhNCMv9jBWkWdY+p8+d8e2zn2+vUlR5/hR1/qp+9NoQAA3AmJyzGxe5A+tJ1oUZxtDqmaLnwQi3GLq1VGUtBZGYkGlj87++V/s6tTPFbNxgqu4U7zFLtUScJcuWrpbUGDzojqNw+VWATOtE4MRztjofHxQejcjeeglykbngb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lge.com; spf=pass smtp.mailfrom=lge.com; arc=none smtp.client-ip=156.147.51.103 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lge.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lge.com Received: from unknown (HELO yjaykim-PowerEdge-T330.lge.net) (10.177.112.156) by 156.147.51.103 with ESMTP; 7 Aug 2026 04:32:28 +0900 X-Original-SENDERIP: 10.177.112.156 X-Original-MAILFROM: youngjun.park@lge.com From: Youngjun Park To: Andrew Morton Cc: Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Youngjun Park , her0gyugyu@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] mm/swap: fix stale comment on swap_info_struct::cluster_info Date: Fri, 7 Aug 2026 04:32:27 +0900 Message-Id: <20260806193228.458685-2-youngjun.park@lge.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260806193228.458685-1-youngjun.park@lge.com> References: <20260806193228.458685-1-youngjun.park@lge.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit setup_swap_clusters_info() allocates cluster_info for every swap area, not only for SSDs. Signed-off-by: Youngjun Park Acked-by: Kairui Song Reviewed-by: Barry Song --- include/linux/swap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/swap.h b/include/linux/swap.h index 2cb1d29307c5..2b14e2e9673b 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -246,7 +246,7 @@ struct swap_info_struct { struct plist_node list; /* entry in swap_active_head */ signed char type; /* strange name for an index */ unsigned int max; /* size of this swap device */ - struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */ + struct swap_cluster_info *cluster_info; /* array, one entry per cluster */ struct list_head free_clusters; /* free clusters list */ struct list_head full_clusters; /* full clusters list */ struct list_head nonfull_clusters[SWAP_NR_ORDERS]; -- 2.48.1