From: Jiri Pirko Date: Wed, 19 May 2010 03:26:39 +0000 (+0000) Subject: bonding: optimize tlb_get_least_loaded_slave X-Git-Tag: v2.6.36-rc1~571^2~682 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=097811bb48c7837db94d7fe5d94f0f4b5e19e78c;p=pandora-kernel.git bonding: optimize tlb_get_least_loaded_slave In the worst case, when the first loop breaks an the end of the slave list, the slave list is iterated through twice. This patch reduces this function only to one loop. Also makes it simpler. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- Reading git-diff-tree failed