]> git.neil.brown.name Git - LaFS.git/commit
Implement youth decay.
authorNeilBrown <neilb@suse.de>
Sat, 14 Aug 2010 03:36:36 +0000 (13:36 +1000)
committerNeilBrown <neilb@suse.de>
Sat, 14 Aug 2010 03:36:36 +0000 (13:36 +1000)
commit27dfe0735e2094e09e18b3ea0fc341c4de48d395
tree8e2bbc21e9cb2b5ab9fc70d54a3cbc264d0ff824
parent7d9d5b36e5db5fcfbd4ba0e4cf32008c4821420a
Implement youth decay.

 - After a checkpoint, check if we are close enough to the end
   of youth space to need a decay.
 - when we record a new youth number, un-decay it if the block hasn't
   been decayed yet (and convert endian properly)
 - Change scan_seg to updates free_block/free_dev atomically in just
   one place, and do a block worth of decay at that point.
   As part of this, the youth block is only released at one place now.

Signed-off-by: NeilBrown <neilb@suse.de>
checkpoint.c
layout.h
segments.c
state.h
super.c