Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2f5ea477
Commit
2f5ea477
authored
Dec 03, 2009
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cfq-iosched: fix compile problem with !CONFIG_CGROUP
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
72f924f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
block/blk-cgroup.h
block/blk-cgroup.h
+10
-0
No files found.
block/blk-cgroup.h
View file @
2f5ea477
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
#include <linux/cgroup.h>
#include <linux/cgroup.h>
#ifdef CONFIG_BLK_CGROUP
struct
blkio_cgroup
{
struct
blkio_cgroup
{
struct
cgroup_subsys_state
css
;
struct
cgroup_subsys_state
css
;
unsigned
int
weight
;
unsigned
int
weight
;
...
@@ -41,6 +43,13 @@ struct blkio_group {
...
@@ -41,6 +43,13 @@ struct blkio_group {
unsigned
long
sectors
;
unsigned
long
sectors
;
};
};
#else
struct
blkio_group
{
};
#endif
#define BLKIO_WEIGHT_MIN 100
#define BLKIO_WEIGHT_MIN 100
#define BLKIO_WEIGHT_MAX 1000
#define BLKIO_WEIGHT_MAX 1000
#define BLKIO_WEIGHT_DEFAULT 500
#define BLKIO_WEIGHT_DEFAULT 500
...
@@ -69,6 +78,7 @@ extern struct blkio_group *blkiocg_lookup_group(struct blkio_cgroup *blkcg,
...
@@ -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
,
void
blkiocg_update_blkio_group_stats
(
struct
blkio_group
*
blkg
,
unsigned
long
time
,
unsigned
long
sectors
);
unsigned
long
time
,
unsigned
long
sectors
);
#else
#else
struct
cgroup
;
static
inline
struct
blkio_cgroup
*
static
inline
struct
blkio_cgroup
*
cgroup_to_blkio_cgroup
(
struct
cgroup
*
cgroup
)
{
return
NULL
;
}
cgroup_to_blkio_cgroup
(
struct
cgroup
*
cgroup
)
{
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment