Skip to content

Use list_for_each_entry_safe

Bhaktipriya Shridhar outreachy 1 version New

Get series with b4
b4 am 20160311195544.GA2878@Karyakshetra

Versions newest first

  1. v3 Latest13 patches 0 repliesNew

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13staging: lustre: obdclass: Use list_for_each_entry_safedrivers/staging/lustre/lustre/obdclass/lustre_peer.c+2 -30 replies
2/13staging: lustre: lnet: lib-move: Use list_for_each_entry_safedrivers/staging/lustre/lnet/lnet/lib-move.c+4 -50 replies
3/13staging: lustre: lnet: conrpc: Use list_for_each_entry_safedrivers/staging/lustre/lnet/selftest/conrpc.c+2 -30 replies
4/13staging: lustre: lnet: router: Use list_for_each_entry_safedrivers/staging/lustre/lnet/lnet/router.c+2 -20 replies
5/13staging: lustre: lnet: config: Use list_for_each_entry_safedrivers/staging/lustre/lnet/lnet/config.c+2 -30 replies
6/13staging: lustre: lnet: peer: Use list_for_each_entry_safedrivers/staging/lustre/lnet/lnet/peer.c+2 -20 replies
7/13staging: lustre: lnet: api-ni: Use list_for_each_entry_safedrivers/staging/lustre/lnet/lnet/api-ni.c+4 -60 replies
8/13staging: lustre: osc: Use list_for_each_entry_safedrivers/staging/lustre/lustre/osc/osc_page.c+2 -30 replies
9/13staging: lustre: osc_cache: Use list_for_each_entry_safedrivers/staging/lustre/lustre/osc/osc_cache.c+4 -50 replies
10/13staging: lustre: libcfs: Use list_for_each_entry_safedrivers/staging/lustre/lnet/libcfs/workitem.c+2 -30 replies
11/13staging: lustre: lnet: socklnd_proto: Use list_for_each_entry_safedrivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c+2 -20 replies
12/13staging: lustre: lnet: socklnd: Use list_for_each_entry_safedrivers/staging/lustre/lnet/klnds/socklnd/socklnd.c+4 -50 replies
13/13staging: lustre: lnet: o2iblnd: Use list_for_each_entry_safedrivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/13] Use list_for_each_entry_safe

This patch-set replaces the while loop containing list_empty and list_entry with list_for_each_entry_safe.

Doubly linked lists which are iterated using list_empty and list_entry macros have been replaced with list_for_each_entry_safe macro.

This makes the iteration simpler and more readable.

Bhaktipriya Shridhar (13):
staging: lustre: obdclass: Use list_for_each_entry_safe
staging: lustre: lnet: lib-move: Use list_for_each_entry_safe
staging: lustre: lnet: conrpc: Use list_for_each_entry_safe
staging: lustre: lnet: router: Use list_for_each_entry_safe
staging: lustre: lnet: config: Use list_for_each_entry_safe
staging: lustre: lnet: peer: Use list_for_each_entry_safe
staging: lustre: lnet: api-ni: Use list_for_each_entry_safe
staging: lustre: osc: Use list_for_each_entry_safe
staging: lustre: osc_cache: Use list_for_each_entry_safe
staging: lustre: libcfs: Use list_for_each_entry_safe
staging: lustre: lnet: socklnd_proto: Use list_for_each_entry_safe
staging: lustre: lnet: socklnd: Use list_for_each_entry_safe
staging: lustre: lnet: o2iblnd: Use list_for_each_entry_safe

 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c    |  4 ++--
 drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c       |  9 ++++-----
 drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c |  4 ++--
 drivers/staging/lustre/lnet/libcfs/workitem.c             |  5 ++---
 drivers/staging/lustre/lnet/lnet/api-ni.c                 | 10 ++++------
 drivers/staging/lustre/lnet/lnet/config.c                 |  5 ++---
 drivers/staging/lustre/lnet/lnet/lib-move.c               |  9 ++++-----
 drivers/staging/lustre/lnet/lnet/peer.c                   |  4 ++--
 drivers/staging/lustre/lnet/lnet/router.c                 |  4 ++--
 drivers/staging/lustre/lnet/selftest/conrpc.c             |  5 ++---
 drivers/staging/lustre/lustre/obdclass/lustre_peer.c      |  5 ++---
 drivers/staging/lustre/lustre/osc/osc_cache.c             |  9 ++++-----
 drivers/staging/lustre/lustre/osc/osc_page.c              |  5 ++---
 13 files changed, 34 insertions(+), 44 deletions(-)

--
2.1.4