diff options
author | David Howells <dhowells@redhat.com> | 2008-07-25 10:48:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 19:53:47 +0200 |
commit | 3e85ba034deec351f02cb55ff225bbd616463841 (patch) | |
tree | 104931bdb095bd9f7cb987e50800a036b0c2dcb4 /CREDITS | |
parent | task IO accounting: provide distinct tgid/tid I/O statistics (diff) | |
download | linux-3e85ba034deec351f02cb55ff225bbd616463841.tar.xz linux-3e85ba034deec351f02cb55ff225bbd616463841.zip |
tsacct: fix bacct_add_tsk()'s use of do_div()
Fix bacct_add_tsk()'s use of do_div() on an s64 by making ac_etime a u64
instead and dividing that.
Possibly this should be guarded lest the interval calculation turn up
negative, but the possible negativity of the result of the division is
cast away, and it shouldn't end up negative anyway.
This was introduced by patch f3cef7a99469afc159fec3a61b42dc7ca5b6824f.
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions