blk-cgroup: provide stubs for blkcg_get_fc_appid()
Subsystems (2)
PATCH 1/1 blk-cgroup: provide stubs for blkcg_get_fc_appid()
Signed-off-by Hannes Reinecke <[email protected]>
--- include/linux/blk-cgroup.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
include/linux/blk-cgroup.h +12 -3
@@ -33,6 +33,9 @@ void blkcg_unpin_online(struct cgroup_subsys_state *blkcg_css);struct list_head *blkcg_get_cgwb_list (struct cgroup_subsys_state *css);struct cgroup_subsys_state *bio_blkcg_css (struct bio *bio); +int blkcg_set_fc_appid (char *app_id,u64 cgrp_id,size_t app_id_len); +char *blkcg_get_fc_appid (struct bio *bio); +#else /* CONFIG_BLK_CGROUP */ #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
@@ -44,9 +47,15 @@ static inline struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio) {return NULL ; } +static inline int blkcg_set_fc_appid (char *app_id,u64 cgrp_id, +size_t app_id_len) +{ +return -EINVAL ; +} +static inline char *blkcg_get_fc_appid (struct bio *bio) +{ +return NULL ; +}#endif /* CONFIG_BLK_CGROUP */ -int blkcg_set_fc_appid (char *app_id,u64 cgrp_id,size_t app_id_len); -char *blkcg_get_fc_appid (struct bio *bio); -#endif /* _BLK_CGROUP_H */
Signature · 1 line
2.29.2
Jens Axboe
maintainerQuoted 1 line · Hannes Reinecke
Signed-off-by Hannes Reinecke <[email protected]>
This needs both an actual commit message and a Fixes tag.
Signature · 1 line
Jens Axboe