From 0444a97d582d38471a278efc8ba59165c065ef57 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 3 Jul 2010 09:19:10 +1000 Subject: [PATCH] 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 --- clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5