]> git.neil.brown.name Git - LaFS.git/commit
Allow writers to block while the cleaner makes a little progress.
authorNeilBrown <neilb@suse.de>
Wed, 23 Jun 2010 07:00:23 +0000 (17:00 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 25 Jun 2010 06:46:40 +0000 (16:46 +1000)
commit93b1016fecb796e0e0bbed76653141751c639fd7
tree6dce720fd7bf3e2d0f541037f2a58f1782b4cf38
parentd611d8d603759ead8e07d7a678304ceed5329da2
Allow writers to block while the cleaner makes a little progress.

We record how much progress is required, and allow to wait
for that much progress to happen at which point a checkpoint
happens.

Also add 'free_segs' similar to 'free_blocks' (and counting blocks)
which counts the number of blocks in free segs, not including
any current segs.  This forced allocators to wait sooner and
may be more appropriate.

Signed-off-by: NeilBrown <neilb@suse.de>
block.c
checkpoint.c
clean.c
lafs.h
segments.c
state.h