erofs: Convert to use the fallthrough macro
PATCH 1/1 erofs: Convert to use the fallthrough macro
From: Miaohe Lin <[email protected]>
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by Hongxiang Lou <[email protected]>
Signed-off-by Miaohe Lin <[email protected]>
--- fs/erofs/zmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
fs/erofs/zmap.c +3 -3
@@ -359,7 +359,7 @@ static int z_erofs_extent_lookback(struct z_erofs_maprecorder *m,return z_erofs_extent_lookback (m, m->delta[0 ]);case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN : map->m_flags &= ~EROFS_MAP_ZIPPED ; -/* fallthrough */ + fallthrough;case Z_EROFS_VLE_CLUSTER_TYPE_HEAD : map->m_la = (lcn << lclusterbits) | m->clusterofs;break ;
@@ -416,7 +416,7 @@ int z_erofs_map_blocks_iter(struct inode *inode,case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN :if (endoff >= m.clusterofs) map->m_flags &= ~EROFS_MAP_ZIPPED ; -/* fallthrough */ + fallthrough;case Z_EROFS_VLE_CLUSTER_TYPE_HEAD :if (endoff >= m.clusterofs) { map->m_la = (m.lcn << lclusterbits) | m.clusterofs;
@@ -433,7 +433,7 @@ int z_erofs_map_blocks_iter(struct inode *inode, end = (m.lcn << lclusterbits) | m.clusterofs; map->m_flags |=EROFS_MAP_FULL_MAPPED ; m.delta[0 ] =1 ; -/* fallthrough */ + fallthrough;case Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD :/* get the correspoinding first chunk */ err =z_erofs_extent_lookback (&m, m.delta[0 ]);
Signature · 1 line
2.19.1
Quoted 6 lines · linmiaohe
From: Miaohe Lin <[email protected]>
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by Hongxiang Lou <[email protected]>Signed-off-by Miaohe Lin <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
Gao Xiang
Reviewed-byQuoted 9 lines · Chao Yu
Quoted 6 lines · linmiaohe
From: Miaohe Lin <[email protected]>
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by Hongxiang Lou <[email protected]>Signed-off-by Miaohe Lin <[email protected]>Reviewed-by Chao Yu <[email protected]>
Looks good to me too,
Reviewed-by Gao Xiang <[email protected]>
(Although it seems some exist discussions here, e.g.,
https://lore.kernel.org/r/[email protected]
Will confirm that before the next cycle.)
Thanks,
Gao Xiang
Quoted 3 lines
Thanks,