Lines Matching refs:bw
40 struct block_walk_struct *bw = (struct block_walk_struct *) private;
43 for (i=0; i < bw->num_blocks; i++) {
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) {
45 bw->barray[i].ino = bw->inode;
46 bw->blocks_left--;
49 if (!bw->blocks_left)
57 struct block_walk_struct bw;
73 bw.barray = malloc(sizeof(struct block_info) * argc);
74 if (!bw.barray) {
79 memset(bw.barray, 0, sizeof(struct block_info) * argc);
88 if (strtoblk(argv[0], argv[i], &bw.barray[i-1].blk))
92 bw.num_blocks = bw.blocks_left = argc-1;
112 bw.inode = ino;
116 0, 0, &bw);
117 if (bw.blocks_left == 0)
132 icheck_proc, &bw);
139 if (bw.blocks_left == 0)
154 for (i=0, binfo = bw.barray; i < bw.num_blocks; i++, binfo++) {
163 free(bw.barray);