Whamcloud - gitweb
LU-12003 osd: take reference to object in osd_trunc_lock()
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index e606f7d..099510d 100644 (file)
@@ -2034,7 +2034,7 @@ static int osd_trans_stop(const struct lu_env *env, struct dt_device *dt,
                OBD_FREE_PTR(oh);
        }
 
-       osd_trunc_unlock_all(&truncates);
+       osd_trunc_unlock_all(env, &truncates);
 
        /* inform the quota slave device that the transaction is stopping */
        qsd_op_end(env, qsd, qtrans);