From 49a7b5ac7a4c0bfff5dfb449303b8dad28e1e450 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 25 Jun 2010 19:17:29 +1000 Subject: [PATCH] Add cluster list tracking to print_tree In print tree, where we try to print which 'lru' list a block is on, also check the write-cluster lists, both in preparation, and waiting for Writeout. Signed-off-by: NeilBrown --- checkpoint.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/checkpoint.c b/checkpoint.c index 22f4cee..084db6b 100644 --- a/checkpoint.c +++ b/checkpoint.c @@ -230,7 +230,24 @@ int lafs_print_tree(struct block *b, int depth) break; } } - /* print the flags */ + for (i = 0 ; i < 2; i++) { + int j, k; + j = 0; + list_for_each_entry(b2, &dfs->wc[i].clhead, lru) { + if (b2 == b) + printk(" wc[%d][%d] ", i, j); + j++; + } + for (k = 0; k < 4; k++) { + j = 0; + list_for_each_entry(b2, &dfs->wc[i].pending_blocks[k], lru) { + if (b2 == b) + printk(" pending[%d][%d][%d] ", i, k, j); + j++; + } + } + } + printk("\n"); if (test_bit(B_Index, &b->flags) && ib->uninc_table.pending_cnt) { lafs_print_uninc(&ib->uninc_table); -- 2.39.5