sys/vfs/hammer2: Fix function name in panic() calls
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 1 Aug 2019 20:27:37 +0000 (05:27 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 2 Aug 2019 05:50:53 +0000 (14:50 +0900)
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_io.c
sys/vfs/hammer2/hammer2_strategy.c

index ec0e6fd..4e719a1 100644 (file)
@@ -129,7 +129,8 @@ hammer2_chain_assert_no_data(hammer2_chain_t *chain)
        if (chain->bref.type != HAMMER2_BREF_TYPE_VOLUME &&
            chain->bref.type != HAMMER2_BREF_TYPE_FREEMAP &&
            chain->data) {
-               panic("hammer2_assert_no_data: chain %p still has data", chain);
+               panic("hammer2_chain_assert_no_data: chain %p still has data",
+                   chain);
        }
 }
 
@@ -1467,7 +1468,7 @@ hammer2_chain_base_and_count(hammer2_chain_t *parent, int *countp)
                        count = HAMMER2_SET_COUNT;
                        break;
                default:
-                       panic("hammer2_chain_create_indirect: "
+                       panic("hammer2_chain_base_and_count: "
                              "unrecognized blockref type: %d",
                              parent->bref.type);
                        count = 0;
@@ -1494,7 +1495,7 @@ hammer2_chain_base_and_count(hammer2_chain_t *parent, int *countp)
                        count = HAMMER2_SET_COUNT;
                        break;
                default:
-                       panic("hammer2_chain_create_indirect: "
+                       panic("hammer2_chain_base_and_count: "
                              "unrecognized blockref type: %d",
                              parent->bref.type);
                        count = 0;
@@ -3134,7 +3135,7 @@ again:
                count = HAMMER2_SET_COUNT;
                break;
        default:
-               panic("hammer2_chain_lookup: unrecognized blockref type: %d",
+               panic("hammer2_chain_scan: unrecognized blockref type: %d",
                      parent->bref.type);
                base = NULL;    /* safety */
                count = 0;      /* safety */
@@ -3833,7 +3834,7 @@ _hammer2_chain_delete_helper(hammer2_chain_t *parent, hammer2_chain_t *chain,
                default:
                        base = NULL;
                        count = 0;
-                       panic("hammer2_flush_pass2: "
+                       panic("_hammer2_chain_delete_helper: "
                              "unrecognized blockref type: %d",
                              parent->bref.type);
                }
@@ -5724,7 +5725,7 @@ hammer2_base_sort(hammer2_chain_t *chain)
                        chain->bref.type);
                while (1)
                        tsleep(&base, 0, "dead", 0);
-               panic("hammer2_chain_lookup: unrecognized "
+               panic("hammer2_base_sort: unrecognized "
                      "blockref(A) type: %d",
                      chain->bref.type);
                base = NULL;    /* safety */
index b08127f..0918612 100644 (file)
@@ -812,7 +812,7 @@ hammer2_io_dedup_delete(hammer2_dev_t *hmp, uint8_t btype,
                if (data_off < dio->pbase ||
                    (data_off & ~HAMMER2_OFF_MASK_RADIX) + bytes >
                    dio->pbase + dio->psize) {
-                       panic("hammer2_dedup_delete: DATAOFF BAD "
+                       panic("hammer2_io_dedup_delete: DATAOFF BAD "
                              "%016jx/%d %016jx\n",
                              data_off, bytes, dio->pbase);
                }
index 11f67d0..db9f213 100644 (file)
@@ -471,11 +471,11 @@ hammer2_strategy_read_completion(hammer2_chain_t *focus, const char *data,
                        bp->b_error = 0;
                        break;
                default:
-                       panic("hammer2_strategy_read: "
+                       panic("hammer2_strategy_read_completion: "
                              "unknown compression type");
                }
        } else {
-               panic("hammer2_strategy_read: unknown bref type");
+               panic("hammer2_strategy_read_completion: unknown bref type");
        }
 }
 
@@ -1081,7 +1081,7 @@ hammer2_compress_and_write(char *data, hammer2_inode_t *ip,
 
                switch(chain->bref.type) {
                case HAMMER2_BREF_TYPE_INODE:
-                       panic("hammer2_write_bp: unexpected inode\n");
+                       panic("hammer2_compress_and_write: unexpected inode\n");
                        break;
                case HAMMER2_BREF_TYPE_DATA:
                        /*
@@ -1152,7 +1152,7 @@ hammer2_compress_and_write(char *data, hammer2_inode_t *ip,
                        }
                        break;
                default:
-                       panic("hammer2_write_bp: bad chain type %d\n",
+                       panic("hammer2_compress_and_write: bad chain type %d\n",
                                chain->bref.type);
                        /* NOT REACHED */
                        break;