From: NeilBrown Date: Thu, 10 Jun 2010 06:24:05 +0000 (+1000) Subject: inode_orphan: convert do-while to a normal while. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=4a4f3eb8d6f6b1b8f3d03fe83bb72a133ac57ee9;p=LaFS.git inode_orphan: convert do-while to a normal while. The justification for the do-while has long since gone, so use a more natural while loop. Signed-off-by: NeilBrown --- diff --git a/inode.c b/inode.c index a837d44..3c0ca32 100644 --- a/inode.c +++ b/inode.c @@ -687,9 +687,8 @@ void lafs_inode_handle_orphan(struct datablock *b) do_restart = 0; goto out2; } - do - lafs_incorporate(fs, ib2); while (ib2->uninc_table.pending_cnt || ib2->uninc); + lafs_incorporate(fs, ib2); /* FIXME should I just cluster_allocate and let * it figure things out ?? */