staging/lustre: use time64_t for l_last_activity
[firefly-linux-kernel-4.4.55.git] / drivers / staging / lustre / lustre / ldlm / ldlm_lock.c
index cd340fc8ceab45238e51449434f130973b61cda4..12eb5ac3b3d843207e86f65da3519eed93197a81 100644 (file)
@@ -1564,7 +1564,7 @@ ldlm_error_t ldlm_lock_enqueue(struct ldlm_namespace *ns,
        ldlm_error_t rc = ELDLM_OK;
        struct ldlm_interval *node = NULL;
 
-       lock->l_last_activity = get_seconds();
+       lock->l_last_activity = ktime_get_real_seconds();
        /* policies are not executed on the client or during replay */
        if ((*flags & (LDLM_FL_HAS_INTENT|LDLM_FL_REPLAY)) == LDLM_FL_HAS_INTENT
            && !local && ns->ns_policy) {