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 <neilb@suse.de>
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);