• Tejun Heo's avatar
    update !CONFIG_BLK_CGROUP dummies in include/linux/blk-cgroup.h · efa7d1c7
    Tejun Heo authored
    
    
    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: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    efa7d1c7
blk-cgroup.h 16.7 KB