]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: add __cold attribute to extent_io_tree_panic()
authorDavid Sterba <dsterba@suse.com>
Wed, 12 Feb 2025 20:21:50 +0000 (21:21 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:42 +0000 (20:35 +0100)
This is a wrapper that leads to a panic, so add the annotation like the
other similar functions have.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c

index 6d08c100b01de40d1193df78e1a7a7a1784d02df..13de6af279e526ac1e4508f0d68c580da3f798b0 100644 (file)
@@ -346,10 +346,10 @@ static inline struct extent_state *tree_search(struct extent_io_tree *tree, u64
        return tree_search_for_insert(tree, offset, NULL, NULL);
 }
 
-static void extent_io_tree_panic(const struct extent_io_tree *tree,
-                                const struct extent_state *state,
-                                const char *opname,
-                                int err)
+static void __cold extent_io_tree_panic(const struct extent_io_tree *tree,
+                                       const struct extent_state *state,
+                                       const char *opname,
+                                       int err)
 {
        btrfs_panic(extent_io_tree_to_fs_info(tree), err,
                    "extent io tree error on %s state start %llu end %llu",