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 0D94A54A7E7 for ; Wed, 9 Sep 2026 16:30:59 +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=1788971463; cv=none; b=VbZs2WdePAm7bBedsrYgaV/JjAk27kxeLOD7EQCFz3jbJIv6/QoNdHdKoOOOGssBC7UF472ers/A7LqA6Wa7zFZBBoXChNyvUqrDh8OZFsGlUkuoEy1VbYB1hKEAtbv+EI59RmNHD3hC7TA+wmq1X89Kgyp77Kpsw+Ji+cQTlHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788971463; c=relaxed/simple; bh=lTkbRtZrfifF/vYun+vuxrDk0IkltF+mpN+MO/lbj+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CGYOd+T8dMpp2Z3yvrSL32FnqA5rF9YSKT5LKOpl7Cop8ofgNGOWPozcaduu2CaWuZqwvnyyAiKIZbhIJNNE2gPExpeWZCBX05MFNbNVvwcBG29S2Kml0hecmIvagl19U+eF1C0zldv7ZjzMOCrG3BEcuqS7yAM4KOfOsWEKMhM= 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; 10 Sep 2026 01:15:58 +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 v4 1/2] mm/swap: fix stale comment on swap_info_struct::cluster_info Date: Thu, 10 Sep 2026 01:15:51 +0900 Message-Id: <20260909161552.2335971-2-youngjun.park@lge.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260909161552.2335971-1-youngjun.park@lge.com> References: <20260909161552.2335971-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 8032a0f3c319..78974da6810e 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -240,7 +240,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