Whamcloud - gitweb
LU-4690 lod: separate master object with master stripe
[fs/lustre-release.git] / lustre / mdc / mdc_reint.c
index e9ad092..112b53b 100644 (file)
@@ -225,18 +225,16 @@ int mdc_create(struct obd_export *exp, struct md_op_data *op_data,
        struct list_head cancels = LIST_HEAD_INIT(cancels);
         ENTRY;
 
        struct list_head cancels = LIST_HEAD_INIT(cancels);
         ENTRY;
 
-        /* For case if upper layer did not alloc fid, do it now. */
-        if (!fid_is_sane(&op_data->op_fid2)) {
-                /*
-                 * mdc_fid_alloc() may return errno 1 in case of switch to new
-                 * sequence, handle this.
-                 */
-                rc = mdc_fid_alloc(exp, &op_data->op_fid2, op_data);
-                if (rc < 0) {
-                        CERROR("Can't alloc new fid, rc %d\n", rc);
-                        RETURN(rc);
-                }
-        }
+       /* For case if upper layer did not alloc fid, do it now. */
+       if (!fid_is_sane(&op_data->op_fid2)) {
+               /*
+                * mdc_fid_alloc() may return errno 1 in case of switch to new
+                * sequence, handle this.
+                */
+               rc = mdc_fid_alloc(NULL, exp, &op_data->op_fid2, op_data);
+               if (rc < 0)
+                       RETURN(rc);
+       }
 
 rebuild:
         count = 0;
 
 rebuild:
         count = 0;