Tejun Heo a9520cd6f2 blkcg: make blkcg_policy methods take a pointer to blkcg_policy_data
The newly added ->pd_alloc_fn() and ->pd_free_fn() deal with pd
(blkg_policy_data) while the older ones use blkg (blkcg_gq).  As using
blkg doesn't make sense for ->pd_alloc_fn() and after allocation pd
can always be mapped to blkg and given that these are policy-specific
methods, it makes sense to converge on pd.

This patch makes all methods deal with pd instead of blkg.  Most
conversions are trivial.  In blk-cgroup.c, a couple method invocation
sites now test whether pd exists instead of policy state for
consistency.  This shouldn't cause any behavioral differences.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-08-18 15:49:17 -07:00
..
2015-07-17 16:39:53 -07:00
2015-06-25 11:49:31 +03:00
2015-06-26 14:51:15 -07:00
2015-07-02 11:32:23 -07:00
2015-07-07 22:48:25 +02:00
2015-06-24 17:49:45 -07:00
2015-06-19 15:18:28 +02:00
2015-06-23 18:27:19 -07:00
2015-06-25 12:06:45 +02:00
2015-08-18 15:49:15 -07:00
2015-06-24 17:49:41 -07:00
2015-06-25 04:20:04 -04:00
2015-07-04 14:04:44 -04:00
2015-07-01 19:40:18 -07:00
2015-07-01 19:40:18 -07:00
2015-06-19 01:18:14 +02:00
2015-06-12 11:36:30 +02:00
2015-06-25 01:13:43 +02:00
2015-06-23 18:01:07 -04:00
2015-06-29 10:49:51 -07:00
2015-06-25 17:00:40 -07:00
2015-06-25 17:00:39 -07:00
2015-06-12 17:26:57 -07:00
2015-06-29 11:10:56 -07:00
2015-06-25 17:00:37 -07:00