]> git.neil.brown.name Git - LaFS.git/commit
Rearrange code in lafs_cluster_allocate.
authorNeilBrown <neilb@suse.de>
Tue, 29 Jun 2010 11:24:27 +0000 (21:24 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 29 Jun 2010 11:24:27 +0000 (21:24 +1000)
commit0abf58cf3fc67f660e82e13543d8efa84466d8ac
tree2eb204a3d5dbe5bd9134ba15210260e0e73594c3
parentc58401feb3963f050151a5fa0eb60ed48068f4c2
Rearrange code in lafs_cluster_allocate.

There are two loops in lafs_cluster_allocate that I want
to combine into one.
Need to get some stuff out of the way first.

EmptyIndex handling can move up to the other special-case
handling - just change writeback_done to iounlock_block.

Converting the iolock to writeback and getting a cluster reference
can also move up easily.

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