Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173007
b: refs/heads/master
c: 2f5ea47
h: refs/heads/master
i:
  173005: 5a3c08e
  173003: 1f2481f
  172999: eadc2b9
  172991: 0a6e6c2
v: v3
  • Loading branch information
Jens Axboe committed Dec 3, 2009
1 parent 1c643e2 commit e244b3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72f924f62a6eb375c7c237ecc911f95be0531d1a
refs/heads/master: 2f5ea47712489a9d2d3cb832eb06062e4e64e0ec
10 changes: 10 additions & 0 deletions trunk/block/blk-cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include <linux/cgroup.h>

#ifdef CONFIG_BLK_CGROUP

struct blkio_cgroup {
struct cgroup_subsys_state css;
unsigned int weight;
Expand All @@ -41,6 +43,13 @@ struct blkio_group {
unsigned long sectors;
};

#else

struct blkio_group {
};

#endif

#define BLKIO_WEIGHT_MIN 100
#define BLKIO_WEIGHT_MAX 1000
#define BLKIO_WEIGHT_DEFAULT 500
Expand Down Expand Up @@ -69,6 +78,7 @@ extern struct blkio_group *blkiocg_lookup_group(struct blkio_cgroup *blkcg,
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; }

Expand Down

0 comments on commit e244b3d

Please sign in to comment.