Whamcloud - gitweb
- init ma_valid before usage
authortappro <tappro>
Sat, 21 Oct 2006 10:00:42 +0000 (10:00 +0000)
committertappro <tappro>
Sat, 21 Oct 2006 10:00:42 +0000 (10:00 +0000)
lustre/cmm/cmm_object.c

index e5526fd..b83c71f 100644 (file)
@@ -486,7 +486,7 @@ static int __cmm_mode_get(const struct lu_env *env, struct md_device *md,
         LASSERT(cmi);
         tmp_ma = &cmi->cmi_ma;
         tmp_ma->ma_need = MA_INODE;
-
+        tmp_ma->ma_valid = 0;
         /* get type from src, can be remote req */
         rc = mo_attr_get(env, md_object_next(mo_s), tmp_ma);
         if (rc == 0) {
@@ -812,6 +812,7 @@ static int cmr_create(const struct lu_env *env, struct md_object *mo_p,
         cmi = cmm_env_info(env);
         LASSERT(cmi);
         tmp_ma = &cmi->cmi_ma;
+        tmp_ma->valid = 0;
         tmp_ma->ma_need = MA_INODE;
 
 #ifdef CONFIG_FS_POSIX_ACL