Skip to content

Commit c730ae0

Browse files
marcospskdave
authored andcommitted
btrfs: convert comments to fallthrough annotations
Convert fall through comments to the pseudo-keyword which is now the preferred way. Signed-off-by: Marcos Paulo de Souza <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent b091f7f commit c730ae0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fs/btrfs/ctree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ __tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct extent_buffer *eb,
11961196
switch (tm->op) {
11971197
case MOD_LOG_KEY_REMOVE_WHILE_FREEING:
11981198
BUG_ON(tm->slot < n);
1199-
/* Fallthrough */
1199+
fallthrough;
12001200
case MOD_LOG_KEY_REMOVE_WHILE_MOVING:
12011201
case MOD_LOG_KEY_REMOVE:
12021202
btrfs_set_node_key(eb, &tm->key, tm->slot);

fs/btrfs/ref-verify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static int process_leaf(struct btrfs_root *root,
509509
switch (key.type) {
510510
case BTRFS_EXTENT_ITEM_KEY:
511511
*num_bytes = key.offset;
512-
/* fall through */
512+
fallthrough;
513513
case BTRFS_METADATA_ITEM_KEY:
514514
*bytenr = key.objectid;
515515
ret = process_extent_item(fs_info, path, &key, i,

fs/btrfs/super.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
523523
case Opt_compress_force:
524524
case Opt_compress_force_type:
525525
compress_force = true;
526-
/* Fallthrough */
526+
fallthrough;
527527
case Opt_compress:
528528
case Opt_compress_type:
529529
saved_compress_type = btrfs_test_opt(info,
@@ -622,7 +622,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
622622
btrfs_set_opt(info->mount_opt, NOSSD);
623623
btrfs_clear_and_info(info, SSD,
624624
"not using ssd optimizations");
625-
/* Fallthrough */
625+
fallthrough;
626626
case Opt_nossd_spread:
627627
btrfs_clear_and_info(info, SSD_SPREAD,
628628
"not using spread ssd allocation scheme");
@@ -793,7 +793,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
793793
case Opt_recovery:
794794
btrfs_warn(info,
795795
"'recovery' is deprecated, use 'usebackuproot' instead");
796-
/* fall through */
796+
fallthrough;
797797
case Opt_usebackuproot:
798798
btrfs_info(info,
799799
"trying to use backup root at mount time");

fs/btrfs/volumes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static inline enum btrfs_map_op btrfs_op(struct bio *bio)
408408
return BTRFS_MAP_WRITE;
409409
default:
410410
WARN_ON_ONCE(1);
411-
/* fall through */
411+
fallthrough;
412412
case REQ_OP_READ:
413413
return BTRFS_MAP_READ;
414414
}

0 commit comments

Comments
 (0)