bcachefs: Add missing utf8_unload()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 26 Apr 2025 16:19:47 +0000 (12:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 28 Apr 2025 20:46:12 +0000 (16:46 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index 32fccca..2794308 100644 (file)
@@ -531,6 +531,10 @@ static void __bch2_fs_free(struct bch_fs *c)
        for (unsigned i = 0; i < BCH_TIME_STAT_NR; i++)
                bch2_time_stats_exit(&c->times[i]);
 
+#ifdef CONFIG_UNICODE
+       utf8_unload(c->cf_encoding);
+#endif
+
        bch2_find_btree_nodes_exit(&c->found_btree_nodes);
        bch2_free_pending_node_rewrites(c);
        bch2_free_fsck_errs(c);