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 ((u64)block * (u64)sb->s_blocksize >= in block_to_path()
40 block, bdevname(sb->s_bdev, b)); in block_to_path()
41 } else if (block < DIRCOUNT) { in block_to_path()
42 offsets[n++] = block; in block_to_path()
43 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
45 offsets[n++] = block; in block_to_path()
46 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
48 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
49 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
51 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)) % INDIRCOUNT(sb); in block_to_path()
55 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
62 int V2_minix_get_block(struct inode * inode, long block, in V2_minix_get_block() argument
65 return get_block(inode, block, bh_result, create); in V2_minix_get_block()