btrfs: fix compile when block cgroups are not enabled
authorChris Mason <clm@fb.com>
Fri, 21 Aug 2015 17:05:39 +0000 (10:05 -0700)
committerChris Mason <clm@fb.com>
Fri, 21 Aug 2015 17:08:13 +0000 (10:08 -0700)
commit3a9508b0221dfd290b95fb0ab199958fe078bbdf
treef7e25d8cbfe0e3d5f4a052cc42675351d09e5c9c
parentb84b8390d6009cde5134f775a251103c14bbed74
btrfs: fix compile when block cgroups are not enabled

bio->bi_css and bio->bi_ioc don't exist when block cgroups are not on.
This adds an ifdef around them.  It's not perfect, but our
use of bi_ioc is being removed in the 4.3 merge window.

The bi_css usage really should go into bio_clone, but I want to make
sure that doesn't introduce problems for other bio_clone use cases.

Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.c
fs/btrfs/volumes.c