From 65e3c3f6c84c9068061a57551406c3cb10e1d31c Mon Sep 17 00:00:00 2001 From: "Alan D. Brunelle" Date: Thu, 8 Feb 2007 15:58:45 +0100 Subject: [PATCH] A couple of miscellaneous clean up operations. Signed-off-by: Alan D. Brunelle --- btt/trace.c | 1 - btt/trace_issue.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/btt/trace.c b/btt/trace.c index bca4161..8474d0d 100644 --- a/btt/trace.c +++ b/btt/trace.c @@ -118,7 +118,6 @@ static void __add_trace(struct io *iop) void add_trace(struct io *iop) { - if (iop->t.action & BLK_TC_ACT(BLK_TC_NOTIFY)) { if (iop->t.pid == 0) add_process(0, "kernel"); diff --git a/btt/trace_issue.c b/btt/trace_issue.c index b783ebd..5266e87 100644 --- a/btt/trace_issue.c +++ b/btt/trace_issue.c @@ -75,8 +75,8 @@ int ready_issue(struct io *d_iop, struct io *c_iop) im_iop = list_entry(p, struct io, f_head); LIST_DEL(&im_iop->f_head); + ASSERT(d_iop->bytes_left >= im_iop->t.bytes); if (ready_im(im_iop, c_iop)) { - ASSERT(d_iop->bytes_left >= im_iop->t.bytes); bilink(im_iop, d_iop); dip_rem(im_iop); d_iop->bytes_left -= im_iop->t.bytes; -- 2.25.1