From ad1a74527f0ec59510bfa124b8280617a2b93840 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Mon, 4 Feb 2019 20:42:40 +0300 Subject: [PATCH] LU-11920 lod: do not reset lds_def_comp_entries as it can contain valid pointer and the buffer is refilled every time. Change-Id: I6ae043c31c8cd1414a80a48687bd784e30425553 Signed-off-by: Alex Zhuravlev --- lustre/lod/lod_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/lod/lod_internal.h b/lustre/lod/lod_internal.h index 454b752..62bab33 100644 --- a/lustre/lod/lod_internal.h +++ b/lustre/lod/lod_internal.h @@ -556,7 +556,8 @@ lod_lds_buf_get(const struct lu_env *env) { struct lod_thread_info *info = lod_env_info(env); - memset(&info->lti_def_striping, 0, sizeof(info->lti_def_striping)); + info->lti_def_striping.lds_def_striping_set = 0; + info->lti_def_striping.lds_dir_def_striping_set = 0; return &info->lti_def_striping; } -- 1.8.3.1