]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: convert to list API and replace bond's custom list
authornikolay@redhat.com <nikolay@redhat.com>
Thu, 1 Aug 2013 14:54:47 +0000 (16:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 23:42:01 +0000 (16:42 -0700)
commit67b44e5b241fc5453b17e437d3b02c94e995cb4c
treee25bbe042e4f2e525c08bac512e22bb43c619b0b
parentcba0473c2b6503d6fdffe4a8dcd0e50aebfdc811
bonding: convert to list API and replace bond's custom list

This patch aims to remove struct bonding's first_slave and struct
slave's next and prev pointers, and replace them with the standard Linux
list API. The old macros are converted to list API as well and some new
primitives are available now. The checks if there're slaves that used
slave_cnt have been replaced by the list_empty macro.
Also a few small style fixes, changing longest -> shortest line in local
variable declarations, leaving an empty line before return and removing
unnecessary brackets.
This is the first step to gradual RCU conversion.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_procfs.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h