We're resyncing rstat, so check the rstat version (not fragstat!)
Signed-off-by: Sage Weil <sage@newdream.net>
// first, if the frag is stale, bring it back in sync.
// this matches the logic in CInode::finish_scatter_gather_update();
- if (pf->accounted_fragstat.version != pi->dirstat.version) {
+ if (pf->accounted_rstat.version != pi->rstat.version) {
dout(10) << " resyncing stale rstat (rstat->accounted_rstat)" << dendl;
pf->accounted_rstat = pf->rstat;
parent->dirty_old_rstat.clear();