Whamcloud - gitweb
LU-14119 osd: delete stale OI mapping entry
[fs/lustre-release.git] / lustre / osd-zfs / osd_object.c
index 9817cc5..d1e4374 100644 (file)
@@ -616,9 +616,12 @@ zget:
                GOTO(out, rc = 0);
 
        rc = osd_check_lma(env, obj);
-       if ((!rc && !remote) || (rc != -EREMCHG))
+       if (rc != -EREMCHG)
                GOTO(out, rc);
 
+       osd_scrub_refresh_mapping(env, osd, fid, oid, DTO_INDEX_DELETE, true,
+                                 NULL);
+
 trigger:
        /* We still have chance to get the valid dnode: for the object that is
         * referenced by remote name entry, the object on the local MDT will be