Whamcloud - gitweb
LU-9443 mdd: omit changelog records for volatile files
[fs/lustre-release.git] / lustre / ofd / ofd_dlm.c
index cce2498..4d86785 100644 (file)
@@ -23,7 +23,7 @@
  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2014 Intel Corporation.
+ * Copyright (c) 2012, 2015, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -145,7 +145,7 @@ int ofd_intent_policy(struct ldlm_namespace *ns, struct ldlm_lock **lockp,
                [DLM_LOCKREPLY_OFF]   = sizeof(*rep),
                [DLM_REPLY_REC_OFF]   = sizeof(*reply_lvb)
        };
-       struct ldlm_glimpse_work gl_work;
+       struct ldlm_glimpse_work gl_work = {};
        struct list_head gl_list;
        ENTRY;
 
@@ -189,7 +189,7 @@ int ofd_intent_policy(struct ldlm_namespace *ns, struct ldlm_lock **lockp,
                rc = LDLM_ITER_CONTINUE;
        } else {
                __u64 tmpflags = 0;
-               rc = policy(lock, &tmpflags, 0, &err, NULL);
+               rc = policy(lock, &tmpflags, LDLM_PROCESS_RESCAN, &err, NULL);
                check_res_locked(res);
        }