From 965eca2da26f61895871b9c1ef43600edf98858c Mon Sep 17 00:00:00 2001 From: "Alan D. Brunelle" Date: Mon, 30 Jan 2006 19:03:43 +0100 Subject: [PATCH] [PATCH] blkparse: Remove negative skips The following patch does not insert skips that go backwards. I am not sure why we do, but on occasion we find events that are behind where we should be, and we don't have an entry in skipped ones - that would make me thing it's a duplicate. But in any event, we should not be reporting such things - they cause huge skip numbers by wrapping on an unsigned long. --- blkparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blkparse.c b/blkparse.c index ce25855..459fdee 100644 --- a/blkparse.c +++ b/blkparse.c @@ -1649,7 +1649,8 @@ skip: if (check_current_skips(pdi,bit->sequence)) return 0; - insert_skip(pdi,expected_sequence,bit->sequence-1); + if (expected_sequence < bit->sequence) + insert_skip(pdi, expected_sequence, bit->sequence - 1); return 0; } } -- 2.25.1