]> git.neil.brown.name Git - LaFS.git/commit
Fix lafs_cluster_allocate to full cluster.
authorNeilBrown <neilb@suse.de>
Thu, 1 Jul 2010 06:58:54 +0000 (16:58 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 2 Jul 2010 23:31:19 +0000 (09:31 +1000)
commitabb2bbbde356f784c745632cbb41d51acfcaf5bd
treee551eb1ff08d16705fdcff15977eb1ca2dc50080
parentced4e3a8b59a00fb8e3e92aead4d2b7bd483ff01
Fix lafs_cluster_allocate to full cluster.

When we unified the two loops in lafs_cluster_allocate,
we broke handling for a nearly-full cluster.  We need to
require wc->remaining is at least 1 before we even
consider a cluster_insert.

Signed-off-by: NeilBrown <neilb@suse.de>
cluster.c