btrfs: annotate intentional switch case fallthroughs
authorEric Sandeen <sandeen@redhat.com>
Thu, 31 Jan 2013 00:54:56 +0000 (00:54 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:19 +0000 (12:59 -0500)
This keeps static checkers happy.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c
fs/btrfs/super.c

index 6eff0fa9ecaa7ed97c40e97771dfe205851b7c8a..35444013f0cfbcfd2ab6cdb7527d4b513cf29cf3 100644 (file)
@@ -1138,6 +1138,7 @@ __tree_mod_log_rewind(struct extent_buffer *eb, u64 time_seq,
                switch (tm->op) {
                case MOD_LOG_KEY_REMOVE_WHILE_FREEING:
                        BUG_ON(tm->slot < n);
+                       /* Fallthrough */
                case MOD_LOG_KEY_REMOVE_WHILE_MOVING:
                case MOD_LOG_KEY_REMOVE:
                        btrfs_set_node_key(eb, &tm->key, tm->slot);
index 06537d217419b4b8ac138873a01853bd01f716b9..976f6aac102e7ef0e27e74a21b5f975065f3f887 100644 (file)
@@ -437,6 +437,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
                case Opt_compress_force:
                case Opt_compress_force_type:
                        compress_force = true;
+                       /* Fallthrough */
                case Opt_compress:
                case Opt_compress_type:
                        if (token == Opt_compress ||