usb: isp1760: remove SLAB_MEM_SPREAD flag usage
Subsystems (3)
PATCH 1/1 usb: isp1760: remove SLAB_MEM_SPREAD flag usage
From: Chengming Zhou <[email protected]>
The SLAB_MEM_SPREAD flag is already a no-op as of 6.8-rc1, remove its usage so we can delete it from slab. No functional change.
--- drivers/usb/isp1760/isp1760-hcd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/usb/isp1760/isp1760-hcd.c +3 -5
@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {int __init isp1760_init_kmem_once (void ) { urb_listitem_cachep =kmem_cache_create ("isp1760_urb_listitem" , -sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY ,NULL );if (!urb_listitem_cachep)return -ENOMEM ; qtd_cachep =kmem_cache_create ("isp1760_qtd" , -sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY ,NULL );if (!qtd_cachep) goto destroy_urb_listitem; qh_cachep =kmem_cache_create ("isp1760_qh" ,sizeof (struct isp1760_qh ), -0 ,SLAB_TEMPORARY |SLAB_MEM_SPREAD ,NULL ); +0 ,SLAB_TEMPORARY ,NULL );if (!qh_cachep) goto destroy_qtd;
Signature · 1 line
2.40.1
Quoted 4 lines · On 2024/2/24 21:52, [email protected] wrote:
From: Chengming Zhou <[email protected]>
The
SLAB_MEM_SPREADflag is already a no-op as of 6.8-rc1, remove its usage so we can delete it from slab. No functional change.
Update changelog to make it clearer:
The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag since the commit 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the series[1] went on to mark it obsolete to avoid confusion for users. Here we can just remove all its users, which has no functional change.
[1] https://lore.kernel.org/all/[email protected]/
Thanks!
Quoted 35 lines
Signed-off-by Chengming Zhou <[email protected]>--- drivers/usb/isp1760/isp1760-hcd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/usb/isp1760/isp1760-hcd.c +3
-5@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {int __init isp1760_init_kmem_once (void ) { urb_listitem_cachep =kmem_cache_create ("isp1760_urb_listitem" , -sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY ,NULL );if (!urb_listitem_cachep)return -ENOMEM ; qtd_cachep =kmem_cache_create ("isp1760_qtd" , -sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY ,NULL );if (!qtd_cachep) goto destroy_urb_listitem; qh_cachep =kmem_cache_create ("isp1760_qh" ,sizeof (struct isp1760_qh ), -0 ,SLAB_TEMPORARY |SLAB_MEM_SPREAD ,NULL ); +0 ,SLAB_TEMPORARY ,NULL );if (!qh_cachep) goto destroy_qtd;
Hey Zhou,
many thanks for the patch.
Quoted 8 lines · Chengming Zhou
Quoted 4 lines · On 2024/2/24 21:52, [email protected] wrote:
From: Chengming Zhou <[email protected]>
The
SLAB_MEM_SPREADflag is already a no-op as of 6.8-rc1, remove its usage so we can delete it from slab. No functional change.Update changelog to make it clearer:
Quoted 7 lines
The
SLAB_MEM_SPREADflag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag since the commit16a1d968358a("mm/slab: removemm/slab.candslab_def.h"). And the series[1] went on to mark it obsolete to avoid confusion for users. Here we can just remove all its users, which has no functional change.
With this changelog, you can add my tag:
Cheers,
Rui
Quoted 38 lines
Thanks!
Quoted 35 lines
Signed-off-by Chengming Zhou <[email protected]>--- drivers/usb/isp1760/isp1760-hcd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/usb/isp1760/isp1760-hcd.c +3
-5@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {int __init isp1760_init_kmem_once (void ) { urb_listitem_cachep =kmem_cache_create ("isp1760_urb_listitem" , -sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY ,NULL );if (!urb_listitem_cachep)return -ENOMEM ; qtd_cachep =kmem_cache_create ("isp1760_qtd" , -sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY ,NULL );if (!qtd_cachep) goto destroy_urb_listitem; qh_cachep =kmem_cache_create ("isp1760_qh" ,sizeof (struct isp1760_qh ), -0 ,SLAB_TEMPORARY |SLAB_MEM_SPREAD ,NULL ); +0 ,SLAB_TEMPORARY ,NULL );if (!qh_cachep) goto destroy_qtd;
Greg KH
maintainerQuoted 6 lines · Chengming Zhou
Quoted 4 lines · On 2024/2/24 21:52, [email protected] wrote:
From: Chengming Zhou <[email protected]>
The
SLAB_MEM_SPREADflag is already a no-op as of 6.8-rc1, remove its usage so we can delete it from slab. No functional change.
Quoted 7 lines
Update changelog to make it clearer:
The
SLAB_MEM_SPREADflag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag since the commit16a1d968358a("mm/slab: removemm/slab.candslab_def.h"). And the series[1] went on to mark it obsolete to avoid confusion for users. Here we can just remove all its users, which has no functional change.
Please submit a version 2 with this updated changelog.
thanks,
greg k-h
PATCH v2 1/1 usb: isp1760: remove SLAB_MEM_SPREAD flag usage
From: Chengming Zhou <[email protected]>
The SLAB_MEM_SPREAD flag used to be implemented in SLAB, which was removed as of v6.8-rc1, so it became a dead flag since the commit 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"). And the series[1] went on to mark it obsolete explicitly to avoid confusion for users. Here we can just remove all its users, which has no any functional change.
[1] https://lore.kernel.org/all/[email protected]/
--- drivers/usb/isp1760/isp1760-hcd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/usb/isp1760/isp1760-hcd.c +3 -5
@@ -2521,21 +2521,19 @@ static const struct hc_driver isp1760_hc_driver = {int __init isp1760_init_kmem_once (void ) { urb_listitem_cachep =kmem_cache_create ("isp1760_urb_listitem" , -sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct urb_listitem ),0 ,SLAB_TEMPORARY ,NULL );if (!urb_listitem_cachep)return -ENOMEM ; qtd_cachep =kmem_cache_create ("isp1760_qtd" , -sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY | -SLAB_MEM_SPREAD ,NULL ); +sizeof (struct isp1760_qtd ),0 ,SLAB_TEMPORARY ,NULL );if (!qtd_cachep) goto destroy_urb_listitem; qh_cachep =kmem_cache_create ("isp1760_qh" ,sizeof (struct isp1760_qh ), -0 ,SLAB_TEMPORARY |SLAB_MEM_SPREAD ,NULL ); +0 ,SLAB_TEMPORARY ,NULL );if (!qh_cachep) goto destroy_qtd;
Signature · 1 line
2.40.1