]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf950bdb291af757683aff2ff4e1e77ef4d64ffb
treef7e25d8cbfe0e3d5f4a052cc42675351d09e5c9c
parente35b0ecf9440a3c7ad7aef197327654e5bea7df1
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