diff options
author | pjd <pjd@FreeBSD.org> | 2006-11-01 01:19:13 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-11-01 01:19:13 +0000 |
commit | a9b80b86aefa567f9b27ba2f48144a1d48646988 (patch) | |
tree | eb2c134ce124c96763e54c03cceaeb4d92037b38 | |
parent | cd8e0d8e34bfc5f6b2c47f2416003b83a01220f9 (diff) | |
download | FreeBSD-src-a9b80b86aefa567f9b27ba2f48144a1d48646988.zip FreeBSD-src-a9b80b86aefa567f9b27ba2f48144a1d48646988.tar.gz |
Remove debugging code I accidentally committed.
-rw-r--r-- | sys/geom/journal/g_journal.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c index 74f076d..f51f570 100644 --- a/sys/geom/journal/g_journal.c +++ b/sys/geom/journal/g_journal.c @@ -797,23 +797,12 @@ g_journal_insert(struct bio **head, off_t nstart, off_t nend, off_t joffset, u_char *data, int flags) { struct bio *nbp, *cbp, *pbp; - struct sbuf *sb; off_t cstart, cend; u_char *tmpdata; int n; GJ_DEBUG(3, "INSERT(%p): (%jd, %jd, %jd)", *head, nstart, nend, joffset); - sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); - sbuf_printf(sb, "Adding nstart=%jd nend=%jd joffset=%jd data=%p flags=0x%x\n", - (intmax_t)nstart, (intmax_t)nend, (intmax_t)joffset, data, flags); - GJQ_FOREACH(*head, cbp) { - sbuf_printf(sb, "start=%jd end=%jd joffset=%jd data=%p\n", - (intmax_t)cbp->bio_offset, - (intmax_t)(cbp->bio_offset + cbp->bio_length), - (intmax_t)cbp->bio_joffset, cbp->bio_data); - } - sbuf_finish(sb); n = 0; pbp = NULL; GJQ_FOREACH(*head, cbp) { @@ -1011,30 +1000,6 @@ end: } GJ_DEBUG(3, "INSERT(%p): DONE %d", *head, n); } - pbp = NULL; - GJQ_FOREACH(*head, cbp) { - if (pbp == NULL) { - pbp = cbp; - continue; - } - if (pbp->bio_offset + pbp->bio_length < cbp->bio_offset) { - pbp = cbp; - continue; - } - GJ_DEBUG(0, "Request out of order:"); - GJ_LOGREQ(0, pbp, "Previous: "); - GJ_LOGREQ(0, cbp, "Current: "); - printf("List before:\n"); - printf("%s", sbuf_data(sb)); - printf("List after:\n"); - GJQ_FOREACH(*head, cbp) { - sbuf_printf(sb, "start=%jd end=%jd joffset=%jd data=%p\n", - (intmax_t)cbp->bio_offset, - (intmax_t)(cbp->bio_offset + cbp->bio_length), - (intmax_t)cbp->bio_joffset, cbp->bio_data); - } - panic("Enough."); - } sbuf_delete(sb); return (n); } |