X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=kernel%2Ftsacct.c;h=baacc36914152271e01343e5a4de233e7b8780ba;hb=c347b7989e4d9e1c23cb5cfba78c63c031b7dcee;hp=96f77013d3f038ea03b688c448e2ef69a77aee06;hpb=752c58a471c108d64da1676b2925dfbd83eb177e;p=powerpc.git diff --git a/kernel/tsacct.c b/kernel/tsacct.c index 96f77013d3..baacc36914 100644 --- a/kernel/tsacct.c +++ b/kernel/tsacct.c @@ -96,6 +96,15 @@ void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) stats->write_char = p->wchar; stats->read_syscalls = p->syscr; stats->write_syscalls = p->syscw; +#ifdef CONFIG_TASK_IO_ACCOUNTING + stats->read_bytes = p->ioac.read_bytes; + stats->write_bytes = p->ioac.write_bytes; + stats->cancelled_write_bytes = p->ioac.cancelled_write_bytes; +#else + stats->read_bytes = 0; + stats->write_bytes = 0; + stats->cancelled_write_bytes = 0; +#endif } #undef KB #undef MB