From c1bd96b4e015a68a9320816c37bf9ef27c419d33 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 18 Jul 2018 00:02:42 -0400 Subject: [PATCH] LU-11153 quota: initialize ver for default quota In qmt_set_with_lqe, the variable "ver" is not initialized if the lqe using the default quota is being updated to use new default quota setting. Change-Id: I578543fc69009ef85c667092a66947d3c98a6a7d Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/32827 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev Reviewed-by: Wang Shilong Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Oleg Drokin --- lustre/quota/qmt_handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/quota/qmt_handler.c b/lustre/quota/qmt_handler.c index 4621682..455652c 100644 --- a/lustre/quota/qmt_handler.c +++ b/lustre/quota/qmt_handler.c @@ -209,6 +209,8 @@ quota_set: qmt_restore(lqe, &qti->qti_restore); GOTO(out, rc); } + } else { + ver = dt_version_get(env, LQE_GLB_OBJ(lqe)); } /* compute new qunit value now that we have modified the quota -- 1.8.3.1