Whamcloud - gitweb
LU-9679 lustre: use LIST_HEAD() for local lists. 55/36955/4
authorMr NeilBrown <neilb@suse.de>
Thu, 5 Dec 2019 06:09:19 +0000 (17:09 +1100)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Feb 2020 04:00:32 +0000 (04:00 +0000)
commit0098396983e1075668414aa5298a4990e61ffbda
tree7a390dc116122b7329f725a76c6004d108e1b85a
parent135b5c0009e5201ac70394ee1fe98e523fe86072
LU-9679 lustre: use LIST_HEAD() for local lists.

When declaring a local list head, instead of

   struct list_head list;
   INIT_LIST_HEAD(&list);

use
   LIST_HEAD(list);

which does both steps.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I67bda77c04479e9b2b8c84f02bfb86d9c2ef5671
Reviewed-on: https://review.whamcloud.com/36955
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
28 files changed:
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/lfsck/lfsck_lib.c
lustre/lod/lod_lov.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_io.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lprocfs_status_server.c
lustre/obdclass/lu_object.c
lustre/obdclass/lustre_peer.c
lustre/obdclass/obd_mount.c
lustre/ofd/ofd_fs.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_handler.c
lustre/osp/osp_sync.c
lustre/osp/osp_trans.c
lustre/ptlrpc/client.c
lustre/ptlrpc/nrs_tbf.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpc_module.c
lustre/ptlrpc/sec_config.c
lustre/ptlrpc/service.c
lustre/quota/qsd_writeback.c
lustre/target/tgt_lastrcvd.c
lustre/target/update_trans.c