OSDN Git Service

ANDROID: uid_sys_stats: fix negative write bytes.
authorJin Qian <jinqian@google.com>
Tue, 28 Feb 2017 23:09:42 +0000 (15:09 -0800)
committerJin Qian <jinqian@google.com>
Tue, 14 Mar 2017 20:07:19 +0000 (13:07 -0700)
commit5c866b0f8a2ff6d75fece4463fb9162ca43a4a3a
tree436f7f1f003a7dba12059cdd354bdae48aecc111
parent5a420edf10dc41f907ba5b8175a9befde3219096
ANDROID: uid_sys_stats: fix negative write bytes.

A task can cancel writes made by other tasks. In rare cases,
cancelled_write_bytes is larger than write_bytes if the task
itself didn't make any write. This doesn't affect total size
but may cause confusion when looking at IO usage on individual
tasks.

Bug: 35851986
Change-Id: If6cb549aeef9e248e18d804293401bb2b91918ca
Signed-off-by: Jin Qian <jinqian@google.com>
drivers/misc/uid_sys_stats.c