Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42397
b: refs/heads/master
c: a863055
h: refs/heads/master
i:
  42395: 575854f
v: v3
  • Loading branch information
Jens Axboe committed Dec 4, 2006
1 parent 76036e3 commit 02d619b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3d9d2a5ea9770db07aeb13a07f999aa48e8f865
refs/heads/master: a863055b1066be1b8e1107f71be01daeed6bde31
11 changes: 4 additions & 7 deletions trunk/block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ static unsigned int blktrace_seq __read_mostly = 1;
/*
* Send out a notify message.
*/
static unsigned int trace_note(struct blk_trace *bt, pid_t pid, int action,
const void *data, size_t len)
static void trace_note(struct blk_trace *bt, pid_t pid, int action,
const void *data, size_t len)
{
struct blk_io_trace *t;

Expand All @@ -49,8 +49,6 @@ static unsigned int trace_note(struct blk_trace *bt, pid_t pid, int action,
t->pdu_len = len;
memcpy((void *) t + sizeof(*t), data, len);
}

return blktrace_seq;
}

/*
Expand All @@ -59,9 +57,8 @@ static unsigned int trace_note(struct blk_trace *bt, pid_t pid, int action,
*/
static void trace_note_tsk(struct blk_trace *bt, struct task_struct *tsk)
{
tsk->btrace_seq = trace_note(bt, tsk->pid,
BLK_TN_PROCESS,
tsk->comm, sizeof(tsk->comm));
tsk->btrace_seq = blktrace_seq;
trace_note(bt, tsk->pid, BLK_TN_PROCESS, tsk->comm, sizeof(tsk->comm));
}

static void trace_note_time(struct blk_trace *bt)
Expand Down

0 comments on commit 02d619b

Please sign in to comment.