blkio: Do not export throttle files if CONFIG_BLK_DEV_THROTTLING=n
authorVivek Goyal <vgoyal@redhat.com>
Fri, 1 Oct 2010 12:49:41 +0000 (14:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 1 Oct 2010 12:49:41 +0000 (14:49 +0200)
commit13f98250f587b7defa39ed738dfa74b600e46e7b
tree9d06cb3cd0c8737d1c9289ad6d19e4f4c8ec601f
parentefb012b361cf9319cd86ff169afa7550b7aa9336
blkio: Do not export throttle files if CONFIG_BLK_DEV_THROTTLING=n

Currently throttling related files were visible even if user had disabled
throttling using config options. It was switching off background throttling
of bio but not the cgroup files. This patch fixes it.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-cgroup.c