From: Alex Zhuravlev Date: Mon, 4 Feb 2019 17:42:40 +0000 (+0300) Subject: LU-11920 lod: do not reset lds_def_comp_entries X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F34175%2F4;p=fs%2Flustre-release.git 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 --- 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; }