Commit c730ae0c authored by Marcos Paulo de Souza's avatar Marcos Paulo de Souza Committed by David Sterba

btrfs: convert comments to fallthrough annotations

Convert fall through comments to the pseudo-keyword which is now the
preferred way.
Signed-off-by: default avatarMarcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent b091f7fe
...@@ -1196,7 +1196,7 @@ __tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct extent_buffer *eb, ...@@ -1196,7 +1196,7 @@ __tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct extent_buffer *eb,
switch (tm->op) { switch (tm->op) {
case MOD_LOG_KEY_REMOVE_WHILE_FREEING: case MOD_LOG_KEY_REMOVE_WHILE_FREEING:
BUG_ON(tm->slot < n); BUG_ON(tm->slot < n);
/* Fallthrough */ fallthrough;
case MOD_LOG_KEY_REMOVE_WHILE_MOVING: case MOD_LOG_KEY_REMOVE_WHILE_MOVING:
case MOD_LOG_KEY_REMOVE: case MOD_LOG_KEY_REMOVE:
btrfs_set_node_key(eb, &tm->key, tm->slot); btrfs_set_node_key(eb, &tm->key, tm->slot);
......
...@@ -509,7 +509,7 @@ static int process_leaf(struct btrfs_root *root, ...@@ -509,7 +509,7 @@ static int process_leaf(struct btrfs_root *root,
switch (key.type) { switch (key.type) {
case BTRFS_EXTENT_ITEM_KEY: case BTRFS_EXTENT_ITEM_KEY:
*num_bytes = key.offset; *num_bytes = key.offset;
/* fall through */ fallthrough;
case BTRFS_METADATA_ITEM_KEY: case BTRFS_METADATA_ITEM_KEY:
*bytenr = key.objectid; *bytenr = key.objectid;
ret = process_extent_item(fs_info, path, &key, i, ret = process_extent_item(fs_info, path, &key, i,
......
...@@ -523,7 +523,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options, ...@@ -523,7 +523,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
case Opt_compress_force: case Opt_compress_force:
case Opt_compress_force_type: case Opt_compress_force_type:
compress_force = true; compress_force = true;
/* Fallthrough */ fallthrough;
case Opt_compress: case Opt_compress:
case Opt_compress_type: case Opt_compress_type:
saved_compress_type = btrfs_test_opt(info, saved_compress_type = btrfs_test_opt(info,
...@@ -622,7 +622,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options, ...@@ -622,7 +622,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
btrfs_set_opt(info->mount_opt, NOSSD); btrfs_set_opt(info->mount_opt, NOSSD);
btrfs_clear_and_info(info, SSD, btrfs_clear_and_info(info, SSD,
"not using ssd optimizations"); "not using ssd optimizations");
/* Fallthrough */ fallthrough;
case Opt_nossd_spread: case Opt_nossd_spread:
btrfs_clear_and_info(info, SSD_SPREAD, btrfs_clear_and_info(info, SSD_SPREAD,
"not using spread ssd allocation scheme"); "not using spread ssd allocation scheme");
...@@ -793,7 +793,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options, ...@@ -793,7 +793,7 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
case Opt_recovery: case Opt_recovery:
btrfs_warn(info, btrfs_warn(info,
"'recovery' is deprecated, use 'usebackuproot' instead"); "'recovery' is deprecated, use 'usebackuproot' instead");
/* fall through */ fallthrough;
case Opt_usebackuproot: case Opt_usebackuproot:
btrfs_info(info, btrfs_info(info,
"trying to use backup root at mount time"); "trying to use backup root at mount time");
......
...@@ -408,7 +408,7 @@ static inline enum btrfs_map_op btrfs_op(struct bio *bio) ...@@ -408,7 +408,7 @@ static inline enum btrfs_map_op btrfs_op(struct bio *bio)
return BTRFS_MAP_WRITE; return BTRFS_MAP_WRITE;
default: default:
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
/* fall through */ fallthrough;
case REQ_OP_READ: case REQ_OP_READ:
return BTRFS_MAP_READ; return BTRFS_MAP_READ;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment