diff options
author | Brian Behlendorf <[email protected]> | 2013-11-15 09:59:09 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-11-21 08:56:24 -0800 |
commit | e3dc14b86182a82d99faaa5979846750d937160e (patch) | |
tree | 5359330224fc5ce789a6cff3eefbab352dd3c3f0 /include | |
parent | 29714574fa17291d8427f9a45b109292166d5551 (diff) |
Add I/O Read/Write Accounting
Because ZFS bypasses the page cache we don't inherit per-task I/O
accounting for free. However, the Linux kernel does provide helper
functions allow us to perform our own accounting. These are most
commonly used for direct IO which also bypasses the page cache, but
they can be used for the common read/write call paths as well.
Signed-off-by: Pavel Snajdr <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #313
Closes #1275
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zpl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zpl.h b/include/sys/zpl.h index d513785c4..5a7e23d46 100644 --- a/include/sys/zpl.h +++ b/include/sys/zpl.h @@ -32,6 +32,7 @@ #include <linux/exportfs.h> #include <linux/writeback.h> #include <linux/falloc.h> +#include <linux/task_io_accounting_ops.h> /* zpl_inode.c */ extern void zpl_vap_init(vattr_t *vap, struct inode *dir, |