Whamcloud - gitweb
LU-8085 scrub: increase iteration cursor to skip unused inodes
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_scrub.c
index 3cd4e8c..0e497c3 100644 (file)
@@ -1415,8 +1415,11 @@ full:
                       *count < max) {
                        if (param.offset +
                                ldiskfs_itable_unused_count(param.sb, desc) >
-                           LDISKFS_INODES_PER_GROUP(param.sb))
+                           LDISKFS_INODES_PER_GROUP(param.sb)) {
+                               *pos = 1 + (param.bg + 1) *
+                                       LDISKFS_INODES_PER_GROUP(param.sb);
                                goto next_group;
+                       }
 
                        rc = next(info, dev, &param, &oic, noslot);
                        switch (rc) {