if (unlikely(!thread_is_running(thread)))
GOTO(post, rc = 0);
- LASSERT(scrub->os_pos_current >= ooc->ooc_pos_preload);
scrub->os_pos_current = ooc->ooc_pos_preload;
}
struct osd_otable_cache *ooc = &it->ooi_cache;
__u64 hash;
- if (it->ooi_user_ready)
+ if (!it->ooi_user_ready)
hash = ooc->ooc_pos_preload;
else if (likely(ooc->ooc_consumer_idx != -1))
hash = ooc->ooc_cache[ooc->ooc_consumer_idx].oic_lid.oii_ino;
if (hash > OSD_OTABLE_MAX_HASH)
hash = OSD_OTABLE_MAX_HASH;
- /* Skip the one that has been processed last time. */
- if (ooc->ooc_pos_preload > hash)
- ooc->ooc_pos_preload = hash;
-
+ ooc->ooc_pos_preload = hash;
if (ooc->ooc_pos_preload <= LDISKFS_FIRST_INO(osd_sb(dev)))
ooc->ooc_pos_preload = LDISKFS_FIRST_INO(osd_sb(dev)) + 1;