From: Veaceslav Falico Date: Fri, 27 Sep 2013 14:12:00 +0000 (+0200) Subject: bonding: make __get_active_agg() use bond_for_each_slave() X-Git-Tag: v3.13-rc1~105^2~286 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19177e7d554eba7e73d5eadc2c742d602bbec5ae;p=pandora-kernel.git bonding: make __get_active_agg() use bond_for_each_slave() Currently we're relying on suboptimal construct for (; aggregator; aggregator = __get_next_agg(aggregator)) { where aggregator is an argument of __get_active_agg() which is _always_ the first slave's aggregator - judging by all the callers, comments in the ad_agg_selection_logic() and by logic. Convert it to use the standard bond_for_each_slave(). CC: Jay Vosburgh CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Signed-off-by: David S. Miller --- Reading git-diff-tree failed