blk-throttle: add backlink pointer from throtl_grp to throtl_data
authorTejun Heo <tj@kernel.org>
Tue, 14 May 2013 20:52:32 +0000 (13:52 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 14 May 2013 20:52:32 +0000 (13:52 -0700)
commit0f3457f60edc57332bf6564fa00d561a4372dcb9
treebcfd3cc85b2acc0df06f7759b58fcf49110d3264
parent5b2c16aae0c074c3bb546c4c066ca7064684553c
blk-throttle: add backlink pointer from throtl_grp to throtl_data

Add throtl_grp->td so that the td (throtl_data) a given tg
(throtl_grp) belongs to can be determined, and remove @td argument
from functions which take both @td and @tg as the former now can be
determined from the latter.

This generally simplifies the code and removes a number of cases where
@td is passed as an argument without being actually used.  This will
also help hierarchy support implementation.

While at it, in multi-line conditions, move the logical operators
leading broken lines to the end of the previous line.

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