Re: [PATCH v3 1/2] mm/swap: fix stale comment on swap_info_struct::cluster_info
Baoquan He <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <anWqFVmnmkqtvO6b@MiWiFi-R3L-srv> |
On 08/07/26 at 04:32am, Youngjun Park wrote: > setup_swap_clusters_info() allocates cluster_info for every swap area, > not only for SSDs. > > Signed-off-by: Youngjun Park <[email protected]> > Acked-by: Kairui Song <[email protected]> > Reviewed-by: Barry Song <[email protected]> > --- > include/linux/swap.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Baoquan He <[email protected]> > > 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 >