Lines Matching defs:css
50 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
95 css_put(&blkg->blkcg->css);
248 if (!css_tryget_online(&blkcg->css)) {
306 css_put(&blkcg->css);
440 static int blkcg_reset_stats(struct cgroup_subsys_state *css,
443 struct blkcg *blkcg = css_to_blkcg(css);
775 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu)
777 struct blkcg *blkcg = css_to_blkcg(css);
875 cgroup_rstat_flush(blkcg->css.cgroup);
989 * and handles the destruction of blkgs. Here the css reference held by
1001 * @css: css of interest
1003 * This function is called when @css is about to go away. Here the cgwbs are
1007 static void blkcg_css_offline(struct cgroup_subsys_state *css)
1009 struct blkcg *blkcg = css_to_blkcg(css);
1024 * Destroying the blkgs releases the reference held on the blkcg's css allowing
1059 static void blkcg_css_free(struct cgroup_subsys_state *css)
1061 struct blkcg *blkcg = css_to_blkcg(css);
1131 return &blkcg->css;
1145 static int blkcg_css_online(struct cgroup_subsys_state *css)
1147 struct blkcg *blkcg = css_to_blkcg(css);
1734 struct cgroup_subsys_state *css;
1746 css = kthread_blkcg();
1747 if (css)
1748 blkcg = css_to_blkcg(css);
1823 * @css: target css
1830 struct cgroup_subsys_state *css)
1835 blkg = blkg_lookup_create(css_to_blkcg(css), bio->bi_disk->queue);
1849 * bio_associate_blkg_from_css - associate a bio with a specified css
1851 * @css: target css
1853 * Associate @bio with the blkg found by combining the css's blkg and the
1863 struct cgroup_subsys_state *css)
1868 if (css && css->parent) {
1869 bio->bi_blkg = blkg_tryget_closest(bio, css);
1881 * Associate @bio with the blkg found from the bio's css and request_queue.
1883 * already associated, the css is reused and association redone as the
1888 struct cgroup_subsys_state *css;
1893 css = &bio_blkcg(bio)->css;
1895 css = blkcg_css();
1897 bio_associate_blkg_from_css(bio, css);
1911 bio_associate_blkg_from_css(dst, &bio_blkcg(src)->css);
1945 cgroup_rstat_updated(bio->bi_blkg->blkcg->css.cgroup, cpu);