diff options
author | Chris Mason <clm@fb.com> | 2015-07-02 22:57:22 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-08-09 16:35:06 +0200 |
commit | da2f0f74cf7d074e5a8918c8efdf6aba4a989b4a (patch) | |
tree | 3a2cf977b893863ce5938132a802804a56291f05 /fs/btrfs/ctree.h | |
parent | Btrfs: remove unused mutex from struct 'btrfs_fs_info' (diff) | |
download | linux-da2f0f74cf7d074e5a8918c8efdf6aba4a989b4a.tar.xz linux-da2f0f74cf7d074e5a8918c8efdf6aba4a989b4a.zip |
Btrfs: add support for blkio controllers
This attaches accounting information to bios as we submit them so the
new blkio controllers can throttle on btrfs filesystems.
Not much is required, we're just associating bios with blkcgs during clone,
calling wbc_init_bio()/wbc_account_io() during writepages submission,
and attaching the bios to the current context during direct IO.
Finally if we are splitting bios during btrfs_map_bio, this attaches
accounting information to the split.
The end result is able to throttle nicely on single disk filesystems. A
little more work is required for multi-device filesystems.
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions