ext4: change to use fallthrough macro
Change to use fallthrough macro in switch case. Signed-off-by: Shijie Luo <luoshijie1@huawei.com> Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/20200810114435.24182-1-luoshijie1@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:

committed by
Theodore Ts'o

parent
2fe34d2938
commit
70d7ced2ed
@@ -233,7 +233,7 @@ static int __ext4fs_dirhash(const char *name, int len,
|
|||||||
break;
|
break;
|
||||||
case DX_HASH_HALF_MD4_UNSIGNED:
|
case DX_HASH_HALF_MD4_UNSIGNED:
|
||||||
str2hashbuf = str2hashbuf_unsigned;
|
str2hashbuf = str2hashbuf_unsigned;
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case DX_HASH_HALF_MD4:
|
case DX_HASH_HALF_MD4:
|
||||||
p = name;
|
p = name;
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
@@ -247,7 +247,7 @@ static int __ext4fs_dirhash(const char *name, int len,
|
|||||||
break;
|
break;
|
||||||
case DX_HASH_TEA_UNSIGNED:
|
case DX_HASH_TEA_UNSIGNED:
|
||||||
str2hashbuf = str2hashbuf_unsigned;
|
str2hashbuf = str2hashbuf_unsigned;
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case DX_HASH_TEA:
|
case DX_HASH_TEA:
|
||||||
p = name;
|
p = name;
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
@@ -1180,21 +1180,21 @@ do_indirects:
|
|||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
|
||||||
i_data[EXT4_IND_BLOCK] = 0;
|
i_data[EXT4_IND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_IND_BLOCK:
|
case EXT4_IND_BLOCK:
|
||||||
nr = i_data[EXT4_DIND_BLOCK];
|
nr = i_data[EXT4_DIND_BLOCK];
|
||||||
if (nr) {
|
if (nr) {
|
||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
|
||||||
i_data[EXT4_DIND_BLOCK] = 0;
|
i_data[EXT4_DIND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_DIND_BLOCK:
|
case EXT4_DIND_BLOCK:
|
||||||
nr = i_data[EXT4_TIND_BLOCK];
|
nr = i_data[EXT4_TIND_BLOCK];
|
||||||
if (nr) {
|
if (nr) {
|
||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
|
||||||
i_data[EXT4_TIND_BLOCK] = 0;
|
i_data[EXT4_TIND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_TIND_BLOCK:
|
case EXT4_TIND_BLOCK:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@@ -1434,7 +1434,7 @@ do_indirects:
|
|||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
|
||||||
i_data[EXT4_IND_BLOCK] = 0;
|
i_data[EXT4_IND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_IND_BLOCK:
|
case EXT4_IND_BLOCK:
|
||||||
if (++n >= n2)
|
if (++n >= n2)
|
||||||
break;
|
break;
|
||||||
@@ -1443,7 +1443,7 @@ do_indirects:
|
|||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
|
||||||
i_data[EXT4_DIND_BLOCK] = 0;
|
i_data[EXT4_DIND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_DIND_BLOCK:
|
case EXT4_DIND_BLOCK:
|
||||||
if (++n >= n2)
|
if (++n >= n2)
|
||||||
break;
|
break;
|
||||||
@@ -1452,7 +1452,7 @@ do_indirects:
|
|||||||
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
|
ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
|
||||||
i_data[EXT4_TIND_BLOCK] = 0;
|
i_data[EXT4_TIND_BLOCK] = 0;
|
||||||
}
|
}
|
||||||
/* fall through */
|
fallthrough;
|
||||||
case EXT4_TIND_BLOCK:
|
case EXT4_TIND_BLOCK:
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
@@ -140,7 +140,7 @@ static void bio_post_read_processing(struct bio_post_read_ctx *ctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ctx->cur_step++;
|
ctx->cur_step++;
|
||||||
/* fall-through */
|
fallthrough;
|
||||||
case STEP_VERITY:
|
case STEP_VERITY:
|
||||||
if (ctx->enabled_steps & (1 << STEP_VERITY)) {
|
if (ctx->enabled_steps & (1 << STEP_VERITY)) {
|
||||||
INIT_WORK(&ctx->work, verity_work);
|
INIT_WORK(&ctx->work, verity_work);
|
||||||
@@ -148,7 +148,7 @@ static void bio_post_read_processing(struct bio_post_read_ctx *ctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ctx->cur_step++;
|
ctx->cur_step++;
|
||||||
/* fall-through */
|
fallthrough;
|
||||||
default:
|
default:
|
||||||
__read_end_io(ctx->bio);
|
__read_end_io(ctx->bio);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user