Whamcloud - gitweb
LU-3706 scrub: fix mutex leak in osd_obj_map_recover()
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_scrub.c
index 669cd95..06363da 100644 (file)
@@ -484,7 +484,7 @@ osd_scrub_convert_ff(struct osd_thread_info *info, struct osd_device *dev,
 
                rc1 = __osd_xattr_set(info, inode, XATTR_NAME_FID, ff, size,
                                      XATTR_CREATE);
-               if (rc1 != 0 && rc != 0)
+               if (rc1 != 0 && rc == 0)
                        rc = rc1;
        }