Skip to content

staging: lustre: remove uses and definition of container_of0

Aya Mahfouz lustre-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7staging: lustre: lcommon_cl.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/lclient/lcommon_cl.c+5 -50 replies
2/7staging: lustre: llite_nfs.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/llite/llite_nfs.c+1 -10 replies
3/7staging: lustre: lu_object.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/obdclass/lu_object.c+3 -30 replies
4/7staging: lustre: echo_client.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/obdecho/echo_client.c+1 -10 replies
5/7staging: lustre: osc_io.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/osc/osc_io.c+2 -20 replies
6/7staging: lustre: osc_object.c: replace container_of0 by container_ofdrivers/staging/lustre/lustre/osc/osc_object.c+1 -10 replies
7/7staging: lustre: remove container_of0 and __container_ofdrivers/staging/lustre/include/linux/libcfs/libcfs.h+0 -110 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [lustre-devel] [PATCH 0/7] staging: lustre: remove uses and definition of container_of0

container_of0 can be replaced by the Linux kernel macro container_of. The only difference is that container_of0 tries to evade type casting when the pointer is erroneous or null. All uses of container_of0 have been replaced by container_of and then the macro was removed in the last patch.

Aya Mahfouz (7):
staging: lustre: lcommon_cl.c: replace container_of0 by container_of
staging: lustre: llite_nfs.c: replace container_of0 by container_of
staging: lustre: lu_object.c: replace container_of0 by container_of
staging: lustre: echo_client.c: replace container_of0 by container_of
staging: lustre: osc_io.c: replace container_of0 by container_of
staging: lustre: osc_object.c: replace container_of0 by container_of
staging: lustre: remove container_of0 and __container_of

 drivers/staging/lustre/include/linux/libcfs/libcfs.h | 11 -----------
 drivers/staging/lustre/lustre/lclient/lcommon_cl.c   | 10 +++++-----
 drivers/staging/lustre/lustre/llite/llite_nfs.c      |  2 +-
 drivers/staging/lustre/lustre/obdclass/lu_object.c   |  6 +++---
 drivers/staging/lustre/lustre/obdecho/echo_client.c  |  2 +-
 drivers/staging/lustre/lustre/osc/osc_io.c           |  4 ++--
 drivers/staging/lustre/lustre/osc/osc_object.c       |  2 +-
 7 files changed, 13 insertions(+), 24 deletions(-)
Signature · 6 lines
2.4.2


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz