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