blk-throttle: reorganize throtl_service_queue passed around as argument
authorTejun Heo <tj@kernel.org>
Tue, 14 May 2013 20:52:33 +0000 (13:52 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 14 May 2013 20:52:33 +0000 (13:52 -0700)
commit0049af73bb4b74d1407db59caefc5fe057ee434a
treee903a60168c0f41d3613028bf711db0c9d4183ab
parente2d57e60195a65e2f161ac1229ec9c91935e0240
blk-throttle: reorganize throtl_service_queue passed around as argument

throtl_service_queue will be the building block of hierarchy support
and will form a tree.  This patch updates its usages as arguments to
reduce confusion.

* When a service queue is used as the parent role - the host of the
  rbtree - use @parent_sq instead of @sq.

* For functions taking both @tg and @parent_sq, reorder them so that
  the order is (@tg, @parent_sq) not the other way around.  This makes
  the code follow the usual convention of specifying the primary
  target of the operation as the first argument.

This patch doesn't make any functional differences.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
block/blk-throttle.c