bcachefs: Kill BCH_FEATURE_incompressible
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 25 Nov 2022 17:56:49 +0000 (12:56 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
This isn't needed anymore, we only support metadata versions that have
this.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c

index 821c14763c66a5c1d58178613e5f8cfa77a87e26..5fe049d64e278fa085adc0a997736b8e17b7445d 100644 (file)
@@ -660,14 +660,9 @@ static void __bch2_write_index(struct bch_write_op *op)
         * particularly want to plumb io_opts all the way through the btree
         * update stack right now
         */
-       for_each_keylist_key(keys, k) {
+       for_each_keylist_key(keys, k)
                bch2_rebalance_add_key(c, bkey_i_to_s_c(k), &op->opts);
 
-               if (bch2_bkey_is_incompressible(bkey_i_to_s_c(k)))
-                       bch2_check_set_feature(op->c, BCH_FEATURE_incompressible);
-
-       }
-
        if (!bch2_keylist_empty(keys)) {
                u64 sectors_start = keylist_sectors(keys);