ANDROID: uid_sys_stats: fix negative write bytes.
authorJin Qian <jinqian@google.com>
Tue, 28 Feb 2017 23:09:42 +0000 (15:09 -0800)
committerDanny Wood <danwood76@gmail.com>
Sun, 31 Mar 2019 08:48:11 +0000 (09:48 +0100)
commitc9899b89b05e775e9fdd2846986566030fe73838
treef7eb07cb1be98692b0084db0e3c9547a0bea5c40
parent66839f98f41f5e9226598546a5d1ad07c86f7be5
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>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
drivers/misc/uid_sys_stats.c