]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/btree_io.c
Update bcachefs sources to 72740a707b64 bcachefs: Split brain detection
[bcachefs-tools-debian] / libbcachefs / btree_io.c
index d9abf90e1f8182d83117215e5bab1988755666b3..93a548cd393d707039509ea1a441cdc27b66665e 100644 (file)
@@ -2013,29 +2013,6 @@ do_write:
        /* buffer must be a multiple of the block size */
        bytes = round_up(bytes, block_bytes(c));
 
-       if (bytes > btree_bytes(c)) {
-               struct printbuf buf = PRINTBUF;
-
-               prt_printf(&buf, "btree node write bounce buffer overrun: %u > %zu\n",
-                          bytes, btree_bytes(c));
-
-               prt_printf(&buf, "header: %zu\n", b->written
-                          ? sizeof(struct btree_node)
-                          : sizeof(struct btree_node_entry));
-               prt_printf(&buf, "unwritten: %zu\n", b->whiteout_u64s * sizeof(u64));
-
-               for_each_bset(b, t) {
-                       i = bset(b, t);
-
-                       if (bset_written(b, i))
-                               continue;
-                       prt_printf(&buf, "bset %zu: %zu\n", t - b->set, le16_to_cpu(i->u64s) * sizeof(u64));
-               }
-
-               panic("%s", buf.buf);
-               printbuf_exit(&buf);
-       }
-
        data = btree_bounce_alloc(c, bytes, &used_mempool);
 
        if (!b->written) {