From: NeilBrown Date: Fri, 2 Jul 2010 23:19:10 +0000 (+1000) Subject: keep ->cleaning list in order. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=0444a97d582d38471a278efc8ba59165c065ef57;p=LaFS.git keep ->cleaning list in order. As we processes blocks from the segment in order, it is best to keep them in order for later processing. They will be sorted again when being added to a cluster, but the more we help here, the better. Signed-off-by: NeilBrown --- diff --git a/clean.c b/clean.c index 95e2eaa..17812c7 100644 --- a/clean.c +++ b/clean.c @@ -423,7 +423,7 @@ static int try_clean(struct fs *fs, struct toclean *tc) break; if (list_empty(&b->cleaning)) { - list_add(&b->cleaning, &tc->cleaning); + list_add_tail(&b->cleaning, &tc->cleaning); getdref(b, MKREF(cleaning)); igrab(ino); }