]> git.neil.brown.name Git - LaFS.git/commit
Allow for the possibilty of 'free_blocks' going negative.
authorNeilBrown <neilb@suse.de>
Fri, 4 Mar 2011 01:47:30 +0000 (12:47 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 4 Mar 2011 01:47:30 +0000 (12:47 +1100)
commit91e37c7ac8f7fa8459efdd7f756d969332e3fb70
tree524a7f3895aa85c204a47a24cb995a62e3420b34
parentbeeaa9bc45464cf85776d7f80d9e9413ab0ebe48
Allow for the possibilty of 'free_blocks' going negative.

While this shouldn't happen, the value of free_blocks isn't really
valid until the first segment scan completes.  If something gets
subtracted before that it could go negative temporarily.
We really want to handle that sort of situation gracefully.
So make it a 'signed' value.

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