Skip to content

Commit

Permalink
cfq-iosched: move IO controller declerations to a header file
Browse files Browse the repository at this point in the history
They should not be declared inside some other file that's not related
to CFQ.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Dec 4, 2009
1 parent 2f5ea47 commit f2eecb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions block/blk-cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
#include <linux/seq_file.h>
#include <linux/kdev_t.h>
#include "blk-cgroup.h"

extern void cfq_unlink_blkio_group(void *, struct blkio_group *);
extern void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);
#include "cfq-iosched.h"

struct blkio_cgroup blkio_root_cgroup = { .weight = 2*BLKIO_WEIGHT_DEFAULT };

Expand Down
1 change: 1 addition & 0 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/ioprio.h>
#include <linux/blktrace_api.h>
#include "blk-cgroup.h"
#include "cfq-iosched.h"

/*
* tunables
Expand Down
7 changes: 7 additions & 0 deletions block/cfq-iosched.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef CFQ_IOSCHED_H
#define CFQ_IOSCHED_H

void cfq_unlink_blkio_group(void *, struct blkio_group *);
void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);

#endif

0 comments on commit f2eecb9

Please sign in to comment.