]> git.neil.brown.name Git - LaFS.git/commitdiff
make sure blocks are always refiled after Pinned is set.
authorNeilBrown <neilb@suse.de>
Sat, 15 Aug 2009 07:09:26 +0000 (17:09 +1000)
committerNeilBrown <neilb@suse.de>
Sat, 15 Aug 2009 07:09:26 +0000 (17:09 +1000)
This is important to ensure they go on the leaf lru.
There was one place we weren't doing the right thing.

index.c

diff --git a/index.c b/index.c
index 260a6f8ea4fdb79890fd349ddb992c27a68c515f..f5418c74c0835b72f5e1303889b41808967a7b91 100644 (file)
--- a/index.c
+++ b/index.c
@@ -416,8 +416,10 @@ static void pin_all_children(struct block *b)
                        /* recurse down */
                        depth++;
                        goto recurse;
-               } else
+               } else {
                        set_phase(b, ph);
+                       lafs_refile(b, 0);
+               }
        }
        if (depth) {
                depth--;