Skip to content

Commit f2eecb9

Browse files
author
Jens Axboe
committed
cfq-iosched: move IO controller declerations to a header file
They should not be declared inside some other file that's not related to CFQ. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent 2f5ea47 commit f2eecb9

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎block/blk-cgroup.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
#include <linux/seq_file.h>
1515
#include <linux/kdev_t.h>
1616
#include "blk-cgroup.h"
17-
18-
extern void cfq_unlink_blkio_group(void *, struct blkio_group *);
19-
extern void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);
17+
#include "cfq-iosched.h"
2018

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

‎block/cfq-iosched.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/ioprio.h>
1515
#include <linux/blktrace_api.h>
1616
#include "blk-cgroup.h"
17+
#include "cfq-iosched.h"
1718

1819
/*
1920
* tunables

‎block/cfq-iosched.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef CFQ_IOSCHED_H
2+
#define CFQ_IOSCHED_H
3+
4+
void cfq_unlink_blkio_group(void *, struct blkio_group *);
5+
void cfq_update_blkio_group_weight(struct blkio_group *, unsigned int);
6+
7+
#endif

0 commit comments

Comments
 (0)