All of lore.kernel.org
 help / color / mirror / Atom feed
* [lustre-devel] [PATCH 0/6] lustre: convert list_for_each() to list_for_each_entry()
@ 2018-07-30  3:45 NeilBrown
  2018-07-30  3:45 ` [lustre-devel] [PATCH 4/6] lustre: convert list_for_each in ksocknal_close_conn_locked() NeilBrown
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: NeilBrown @ 2018-07-30  3:45 UTC (permalink / raw)
  To: lustre-devel

list_for_each_entry(foo) is generally preferred to
  list_for_each(l,...)
     foo = list_entry(l,...)

as there is less noise in the code.
The first patch contains seveveral trivial conversions.
The remaining patches are less obvious and are separate
so they are easier to review.

NeilBrown

The following series implements...

---

NeilBrown (6):
      lustre: convert list_for_each() to list_for_each_entry().
      lustre: lnet/config: convert list_for_each to list_for_each_entry
      lustre: convert list_for_each in ksocknal_create_routes
      lustre: convert list_for_each in ksocknal_close_conn_locked()
      lustre: convert list_for_each() in ksocknal_push_peer()
      lustre: convert list_for_each() in ksocknal_debug_peerhash()


 .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c    |   17 --
 .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c |   20 +-
 .../staging/lustre/lnet/klnds/socklnd/socklnd.c    |  166 +++++++-------------
 .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c |   20 +-
 drivers/staging/lustre/lnet/lnet/api-ni.c          |   29 +--
 drivers/staging/lustre/lnet/lnet/config.c          |   28 +--
 drivers/staging/lustre/lnet/lnet/lib-move.c        |    9 -
 drivers/staging/lustre/lnet/lnet/router.c          |   47 +-----
 drivers/staging/lustre/lnet/selftest/conrpc.c      |    7 -
 drivers/staging/lustre/lustre/obdclass/genops.c    |    4 
 .../staging/lustre/lustre/obdecho/echo_client.c    |    4 
 11 files changed, 99 insertions(+), 252 deletions(-)

--
Signature

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-08-02  3:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30  3:45 [lustre-devel] [PATCH 0/6] lustre: convert list_for_each() to list_for_each_entry() NeilBrown
2018-07-30  3:45 ` [lustre-devel] [PATCH 4/6] lustre: convert list_for_each in ksocknal_close_conn_locked() NeilBrown
2018-08-02  3:13   ` James Simmons
2018-07-30  3:45 ` [lustre-devel] [PATCH 1/6] lustre: convert list_for_each() to list_for_each_entry() NeilBrown
2018-07-30 20:49   ` Andreas Dilger
2018-08-02  3:12   ` James Simmons
2018-07-30  3:45 ` [lustre-devel] [PATCH 3/6] lustre: convert list_for_each in ksocknal_create_routes NeilBrown
2018-08-02  3:13   ` James Simmons
2018-07-30  3:45 ` [lustre-devel] [PATCH 2/6] lustre: lnet/config: convert list_for_each to list_for_each_entry NeilBrown
2018-07-30 20:42   ` Andreas Dilger
2018-08-02  3:13   ` James Simmons
2018-07-30  3:45 ` [lustre-devel] [PATCH 6/6] lustre: convert list_for_each() in ksocknal_debug_peerhash() NeilBrown
2018-07-30 21:09   ` Andreas Dilger
2018-08-02  3:14   ` James Simmons
2018-07-30  3:45 ` [lustre-devel] [PATCH 5/6] lustre: convert list_for_each() in ksocknal_push_peer() NeilBrown
2018-08-02  3:14   ` James Simmons
2018-08-02  3:16 ` [lustre-devel] [PATCH 0/6] lustre: convert list_for_each() to list_for_each_entry() James Simmons

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.