otherwise bad things happen when we try to de-register it.
Signed-off-by: NeilBrown <neilb@suse.de>
/* FIXME should more generally delay the update if we
* are in any checkpoint.
*/
+
+ /* FIXME avoid this code duplication?? see below */
+ fs->segtrack->free.first = ss->next;
+ if (fs->segtrack->free.first == 0xFFFF)
+ fs->segtrack->free.last = 0xFFFF;
+ fs->segtrack->free.cnt--;
+ ss->score = SCORE_ACTIVE;
+ /* still in table, but unlinked */
spin_unlock(&fs->lock);
- if (db)
- putdref(db, MKREF(youth));
+ putdref(db, MKREF(youth));
return;
}