]> git.baikalelectronics.ru Git - kernel.git/commit
update !CONFIG_BLK_CGROUP dummies in include/linux/blk-cgroup.h
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:18 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:33 +0000 (08:33 -0600)
commitc78aa99f9566ad135a3c1e62d294798706c3e43d
tree04a423dc46215a19472d5e52eec8395947756859
parentcea1312c3f44d3eb709cf2b1ee2a9d2acad08425
update !CONFIG_BLK_CGROUP dummies in include/linux/blk-cgroup.h

The header file will be used more widely with the pending cgroup
writeback support and the current set of dummy declarations aren't
enough to handle different config combinations.  Update as follows.

* Drop the struct cgroup declaration.  None of the dummy defs need it.

* Define blkcg as an empty struct instead of just declaring it.

* Wrap dummy function defs in CONFIG_BLOCK.  Some functions use block
  data types and none of them are to be used w/o block enabled.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk-cgroup.h