#include <linux/cgroup.h>
+#ifdef CONFIG_BLK_CGROUP
+
struct blkio_cgroup {
struct cgroup_subsys_state css;
unsigned int weight;
unsigned long sectors;
};
+#else
+
+struct blkio_group {
+};
+
+#endif
+
#define BLKIO_WEIGHT_MIN 100
#define BLKIO_WEIGHT_MAX 1000
#define BLKIO_WEIGHT_DEFAULT 500
void blkiocg_update_blkio_group_stats(struct blkio_group *blkg,
unsigned long time, unsigned long sectors);
#else
+struct cgroup;
static inline struct blkio_cgroup *
cgroup_to_blkio_cgroup(struct cgroup *cgroup) { return NULL; }