Whamcloud - gitweb
LU-1346 libcfs: cleanup libcfs primitive (linux-prim.h)
[fs/lustre-release.git] / lustre / osc / osc_lock.c
index 7791e89..a03a1d9 100644 (file)
@@ -307,12 +307,12 @@ static struct osc_lock *osc_ast_data_get(struct ldlm_lock *dlm_lock)
                  * guarantees that all osc references on dlmlock were
                  * released. osc_dlm_blocking_ast0() relies on that.
                  */
-                if (lock->cll_state < CLS_FREEING || olck->ols_has_ref) {
-                        cl_lock_get_trust(lock);
-                        lu_ref_add_atomic(&lock->cll_reference,
-                                          "ast", cfs_current());
-                } else
-                        olck = NULL;
+               if (lock->cll_state < CLS_FREEING || olck->ols_has_ref) {
+                       cl_lock_get_trust(lock);
+                       lu_ref_add_atomic(&lock->cll_reference,
+                                         "ast", current);
+               } else
+                       olck = NULL;
         }
        spin_unlock(&osc_ast_guard);
        unlock_res_and_lock(dlm_lock);
@@ -321,11 +321,11 @@ static struct osc_lock *osc_ast_data_get(struct ldlm_lock *dlm_lock)
 
 static void osc_ast_data_put(const struct lu_env *env, struct osc_lock *olck)
 {
-        struct cl_lock *lock;
+       struct cl_lock *lock;
 
-        lock = olck->ols_cl.cls_lock;
-        lu_ref_del(&lock->cll_reference, "ast", cfs_current());
-        cl_lock_put(env, lock);
+       lock = olck->ols_cl.cls_lock;
+       lu_ref_del(&lock->cll_reference, "ast", current);
+       cl_lock_put(env, lock);
 }
 
 /**