diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-01-30 19:54:56 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:19 -0500 |
commit | 1c697d4acc2e10b2a65b22abba2687a2897ecd74 (patch) | |
tree | ed52efaa672b7b72d701ff3898248bd74129efce /fs | |
parent | aa43a17c21cf35329b1a495dd6876798dd8b016b (diff) |
btrfs: annotate intentional switch case fallthroughs
This keeps static checkers happy.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ctree.c | 1 | ||||
-rw-r--r-- | fs/btrfs/super.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 6eff0fa9ecaa..35444013f0cf 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -1138,6 +1138,7 @@ __tree_mod_log_rewind(struct extent_buffer *eb, u64 time_seq, | |||
1138 | switch (tm->op) { | 1138 | switch (tm->op) { |
1139 | case MOD_LOG_KEY_REMOVE_WHILE_FREEING: | 1139 | case MOD_LOG_KEY_REMOVE_WHILE_FREEING: |
1140 | BUG_ON(tm->slot < n); | 1140 | BUG_ON(tm->slot < n); |
1141 | /* Fallthrough */ | ||
1141 | case MOD_LOG_KEY_REMOVE_WHILE_MOVING: | 1142 | case MOD_LOG_KEY_REMOVE_WHILE_MOVING: |
1142 | case MOD_LOG_KEY_REMOVE: | 1143 | case MOD_LOG_KEY_REMOVE: |
1143 | btrfs_set_node_key(eb, &tm->key, tm->slot); | 1144 | btrfs_set_node_key(eb, &tm->key, tm->slot); |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 06537d217419..976f6aac102e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -437,6 +437,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
437 | case Opt_compress_force: | 437 | case Opt_compress_force: |
438 | case Opt_compress_force_type: | 438 | case Opt_compress_force_type: |
439 | compress_force = true; | 439 | compress_force = true; |
440 | /* Fallthrough */ | ||
440 | case Opt_compress: | 441 | case Opt_compress: |
441 | case Opt_compress_type: | 442 | case Opt_compress_type: |
442 | if (token == Opt_compress || | 443 | if (token == Opt_compress || |