Lines Matching refs:block
26 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
32 if (block < 0) { in block_to_path()
34 block, bdevname(sb->s_bdev, b)); in block_to_path()
35 } else if (block >= (minix_sb(inode->i_sb)->s_max_size/sb->s_blocksize)) { in block_to_path()
39 block, bdevname(sb->s_bdev, b)); in block_to_path()
40 } else if (block < DIRCOUNT) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
42 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
44 offsets[n++] = block; in block_to_path()
45 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
48 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
50 block -= INDIRCOUNT(sb) * INDIRCOUNT(sb); in block_to_path()
52 offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb); in block_to_path()
53 offsets[n++] = (block / INDIRCOUNT(sb)) % INDIRCOUNT(sb); in block_to_path()
54 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
61 int V2_minix_get_block(struct inode * inode, long block, in V2_minix_get_block() argument
64 return get_block(inode, block, bh_result, create); in V2_minix_get_block()