• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/block/

Lines Matching refs:cgroup

2  * Common Block IO controller cgroup interface
20 #include "blk-cgroup.h"
32 struct cgroup *);
33 static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *,
35 static void blkiocg_attach(struct cgroup_subsys *, struct cgroup *,
36 struct cgroup *, struct task_struct *, bool);
37 static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *);
38 static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *);
48 /* note: blkio_subsys_id is otherwise defined in blk-cgroup.h */
82 struct blkio_cgroup *cgroup_to_blkio_cgroup(struct cgroup *cgroup)
84 return container_of(cgroup_subsys_state(cgroup, blkio_subsys_id),
355 cgroup_path(blkcg->css.cgroup, blkg->path, sizeof(blkg->path));
367 * returns 0 if blkio_group was still on cgroup list. Otherwise returns 1
412 static u64 blkiocg_##__VAR##_read(struct cgroup *cgroup, \
417 blkcg = cgroup_to_blkio_cgroup(cgroup); \
425 blkiocg_weight_write(struct cgroup *cgroup, struct cftype *cftype, u64 val)
436 blkcg = cgroup_to_blkio_cgroup(cgroup);
457 blkiocg_reset_stats(struct cgroup *cgroup, struct cftype *cftype, u64 val)
470 blkcg = cgroup_to_blkio_cgroup(cgroup);
512 "Possibly incorrect cgroup stat display format");
597 static int blkiocg_##__VAR##_read(struct cgroup *cgroup, \
605 if (!cgroup_lock_live_group(cgroup)) \
608 blkcg = cgroup_to_blkio_cgroup(cgroup); \
732 static int blkiocg_weight_device_write(struct cgroup *cgrp, struct cftype *cft,
808 static int blkiocg_weight_device_read(struct cgroup *cgrp, struct cftype *cft,
901 static int blkiocg_populate(struct cgroup_subsys *subsys, struct cgroup *cgroup)
903 return cgroup_add_files(cgroup, subsys, blkio_files,
907 static void blkiocg_destroy(struct cgroup_subsys *subsys, struct cgroup *cgroup)
909 struct blkio_cgroup *blkcg = cgroup_to_blkio_cgroup(cgroup);
933 * This blkio_group is being unlinked as associated cgroup is
957 blkiocg_create(struct cgroup_subsys *subsys, struct cgroup *cgroup)
960 struct cgroup *parent = cgroup->parent;
968 if (parent != cgroup->top_cgroup)
988 * its cgroup only if it's the only owner of its ioc.
991 struct cgroup *cgroup, struct task_struct *tsk,
1007 static void blkiocg_attach(struct cgroup_subsys *subsys, struct cgroup *cgroup,
1008 struct cgroup *prev, struct task_struct *tsk,