diff options
| author | Tao Ma <[email protected]> | 2011-05-22 21:45:26 -0400 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2011-05-22 21:45:26 -0400 |
| commit | 28e35e42fb255cbaeee8b9f89643f26fe376374d (patch) | |
| tree | db83cfc348e1ff652aea17eff6ff4eb07d8cd8a9 /tools/perf/scripts/python | |
| parent | f6d2f6b327ceef5c689581529a852dc6ec3b74a6 (diff) | |
jbd2: Fix the wrong calculation of t_max_wait in update_t_max_wait
t_max_wait is added in commit 8e85fb3f to indicate how long we
were waiting for new transaction to start. In commit 6d0bf005,
it is moved to another function named update_t_max_wait to
avoid a build warning. But the wrong thing is that the original
'ts' is initialized in the start of function start_this_handle
and we can calculate t_max_wait in the right way. while with
this change, ts is initialized within the function and t_max_wait
can never be calculated right.
This patch moves the initialization of ts to the original beginning
of start_this_handle and pass it to function update_t_max_wait so
that it can be calculated right and the build warning is avoided also.
Cc: Jan Kara <[email protected]>
Signed-off-by: Tao Ma <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions