Whamcloud - gitweb
LU-8238 ldlm: rid of obsolete param of ldlm_resource_get()
[fs/lustre-release.git] / lustre / ofd / ofd_dev.c
index 48ac842..6b9ea6e 100644 (file)
@@ -1379,8 +1379,8 @@ out:
                 * otherwise concurrent destroy can make the object unavailable
                 * for 2nd lu_object_find() waiting for the first reference
                 * to go... deadlock! */
-               res = ldlm_resource_get(ofd->ofd_namespace, NULL,
-                                       &tsi->tsi_resid, LDLM_EXTENT, 0);
+               res = ldlm_resource_get(ofd->ofd_namespace, &tsi->tsi_resid,
+                                       LDLM_EXTENT, 0);
                if (!IS_ERR(res)) {
                        ldlm_res_lvbo_update(res, NULL, 0);
                        ldlm_resource_putref(res);
@@ -2071,8 +2071,7 @@ out:
        if (srvlock)
                tgt_data_unlock(&lh, LCK_PW);
        if (rc == 0) {
-               res = ldlm_resource_get(ns, NULL, &tsi->tsi_resid,
-                                       LDLM_EXTENT, 0);
+               res = ldlm_resource_get(ns, &tsi->tsi_resid, LDLM_EXTENT, 0);
                if (!IS_ERR(res)) {
                        struct ost_lvb *res_lvb;
 
@@ -2188,8 +2187,7 @@ out:
                 * otherwise concurrent destroy can make the object unavailable
                 * for 2nd lu_object_find() waiting for the first reference
                 * to go... deadlock! */
-               res = ldlm_resource_get(ns, NULL, &tsi->tsi_resid,
-                                       LDLM_EXTENT, 0);
+               res = ldlm_resource_get(ns, &tsi->tsi_resid, LDLM_EXTENT, 0);
                if (!IS_ERR(res)) {
                        struct ost_lvb *res_lvb;