2 * task_io_accounting: a structure which is used for recording a single task's
5 * Don't include this header file directly - it is designed to be dragged in via
8 * Blame Andrew Morton for all this.
11 struct task_io_accounting {
12 #ifdef CONFIG_TASK_XACCT
17 /* # of read syscalls */
19 /* # of write syscalls */
21 /* # of fsync syscalls */
23 #endif /* CONFIG_TASK_XACCT */
25 #ifdef CONFIG_TASK_IO_ACCOUNTING
27 * The number of bytes which this task has caused to be read from
33 * The number of bytes which this task has caused, or shall cause to be
39 * A task can cause "negative" IO too. If this task truncates some
40 * dirty pagecache, some IO which another task has been accounted for
41 * (in its write_bytes) will not be happening. We _could_ just
42 * subtract that from the truncating task's write_bytes, but there is
43 * information loss in doing that.
45 u64 cancelled_write_bytes;
46 #endif /* CONFIG_TASK_IO_ACCOUNTING */