diff options
| -rw-r--r-- | block/blk-cgroup.c | 2 | ||||
| -rw-r--r-- | block/blk-cgroup.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 1039fb9ff5f5..5aa9b8b8a362 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
| @@ -1093,7 +1093,7 @@ EXPORT_SYMBOL_GPL(blkcg_deactivate_policy); | |||
| 1093 | * Register @pol with blkcg core. Might sleep and @pol may be modified on | 1093 | * Register @pol with blkcg core. Might sleep and @pol may be modified on |
| 1094 | * successful registration. Returns 0 on success and -errno on failure. | 1094 | * successful registration. Returns 0 on success and -errno on failure. |
| 1095 | */ | 1095 | */ |
| 1096 | int blkcg_policy_register(struct blkcg_policy *pol) | 1096 | int __init blkcg_policy_register(struct blkcg_policy *pol) |
| 1097 | { | 1097 | { |
| 1098 | int i, ret; | 1098 | int i, ret; |
| 1099 | 1099 | ||
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 371fe8e92ab5..5480adedd387 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
| @@ -145,7 +145,7 @@ void blkcg_drain_queue(struct request_queue *q); | |||
| 145 | void blkcg_exit_queue(struct request_queue *q); | 145 | void blkcg_exit_queue(struct request_queue *q); |
| 146 | 146 | ||
| 147 | /* Blkio controller policy registration */ | 147 | /* Blkio controller policy registration */ |
| 148 | int blkcg_policy_register(struct blkcg_policy *pol); | 148 | int __init blkcg_policy_register(struct blkcg_policy *pol); |
| 149 | void blkcg_policy_unregister(struct blkcg_policy *pol); | 149 | void blkcg_policy_unregister(struct blkcg_policy *pol); |
| 150 | int blkcg_activate_policy(struct request_queue *q, | 150 | int blkcg_activate_policy(struct request_queue *q, |
| 151 | const struct blkcg_policy *pol); | 151 | const struct blkcg_policy *pol); |
| @@ -580,7 +580,7 @@ static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, void *key) { ret | |||
| 580 | static inline int blkcg_init_queue(struct request_queue *q) { return 0; } | 580 | static inline int blkcg_init_queue(struct request_queue *q) { return 0; } |
| 581 | static inline void blkcg_drain_queue(struct request_queue *q) { } | 581 | static inline void blkcg_drain_queue(struct request_queue *q) { } |
| 582 | static inline void blkcg_exit_queue(struct request_queue *q) { } | 582 | static inline void blkcg_exit_queue(struct request_queue *q) { } |
| 583 | static inline int blkcg_policy_register(struct blkcg_policy *pol) { return 0; } | 583 | static inline int __init blkcg_policy_register(struct blkcg_policy *pol) { return 0; } |
| 584 | static inline void blkcg_policy_unregister(struct blkcg_policy *pol) { } | 584 | static inline void blkcg_policy_unregister(struct blkcg_policy *pol) { } |
| 585 | static inline int blkcg_activate_policy(struct request_queue *q, | 585 | static inline int blkcg_activate_policy(struct request_queue *q, |
| 586 | const struct blkcg_policy *pol) { return 0; } | 586 | const struct blkcg_policy *pol) { return 0; } |
