Lines Matching refs:block

22 static sector_t _efs_bmap(struct address_space *mapping, sector_t block)
24 return generic_block_bmap(mapping,block,efs_get_block);
58 efs_block_t block, offset;
76 ** work out the inode block index, (considering initially that the
77 ** inodes are stored as consecutive blocks). then work out the block
79 ** offset of the inode within that block.
85 block = sb->fs_start + sb->first_block +
93 bh = sb_bread(inode->i_sb, block);
95 pr_warn("%s() failed at block %d\n", __func__, block);
180 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) {
186 * given an extent and a logical block within a file,
187 * can this block be found within this extent ?
193 if ((block >= offset) && (block < offset+length)) {
194 return(sb->fs_start + start + block - offset);
200 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
214 if ((result = efs_extent_check(&in->extents[last], block, sb)))
231 if ((result = efs_extent_check(&in->extents[cur], block, sb))) {
237 pr_err("%s() failed to map block %u (dir)\n", __func__, block);
241 pr_debug("%s(): indirect search for logical block %u\n",
242 __func__, block);
264 pr_err("couldn't find direct extent for indirect extent %d (block %u)\n",
265 cur, block);
270 /* work out block number and offset of this indirect extent */
282 pr_err("%s() failed at block %d\n",
286 pr_debug("%s(): read indirect extent block %d\n",
297 pr_err("extent %d has bad magic number in block %d\n",
303 if ((result = efs_extent_check(&ext, block, sb))) {
310 pr_err("%s() failed to map block %u (indir)\n", __func__, block);