Tag: 8f5b1435a13b30c9439095abf0bb37d326515d95

Staging: lustre: Use list_{next/prev}_entry instead of list_entry

Author: Bhumika Goyal <bhumirks@gmail.com> This patch replace list_entry with list_{next/prev}_entry as it makes the code more clear to read. Done using coccinelle: @@ expression e1; identifier e3; type t; @@ ( – list_entry(e1->e3.next,t,e3) + list_next_entry(e1,e3) | – list_entry(e1->e3.prev,t,e3) + list_prev_entry(e1,e3) ) Signed-off-by: Bhumika Goyal Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c | 3 +– drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 7 …

Lire la suite