From 513dde601d2e927566f80ffdae4f381718864747 Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Sun, 7 Jun 2020 19:24:21 -0400 Subject: [PATCH] LU-9679 obdclass: remove init to 0 from lustre_init_lsi() After allocating a struct with OBD_ALLOC, there is no value in setting a few of the fields to zero. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: Ib1291661ba9124219e69c7a4d3c6ee4dcf14e021 Reviewed-on: https://review.whamcloud.com/39135 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Yang Sheng Reviewed-by: Oleg Drokin --- lustre/obdclass/obd_mount.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 6616d49..164d773 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -599,9 +599,6 @@ static struct lustre_sb_info *lustre_init_lsi(struct super_block *sb) RETURN(NULL); } - lsi->lsi_lmd->lmd_exclude_count = 0; - lsi->lsi_lmd->lmd_recovery_time_soft = 0; - lsi->lsi_lmd->lmd_recovery_time_hard = 0; s2lsi_nocast(sb) = lsi; /* we take 1 extra ref for our setup */ atomic_set(&lsi->lsi_mounts, 1); -- 1.8.3.1