Lines Matching refs:block
20 static int _efs_bmap(struct address_space *mapping, long block) in _efs_bmap() argument
22 return generic_block_bmap(mapping,block,efs_get_block); in _efs_bmap()
54 efs_block_t block, offset; in efs_read_inode() local
72 block = sb->fs_start + sb->first_block + in efs_read_inode()
80 bh = sb_bread(inode->i_sb, block); in efs_read_inode()
82 printk(KERN_WARNING "EFS: bread() failed at block %d\n", block); in efs_read_inode()
174 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) { in efs_extent_check() argument
187 if ((block >= offset) && (block < offset+length)) { in efs_extent_check()
188 return(sb->fs_start + start + block - offset); in efs_extent_check()
194 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) { in efs_map_block() argument
208 if ((result = efs_extent_check(&in->extents[last], block, sb))) in efs_map_block()
225 if ((result = efs_extent_check(&in->extents[cur], block, sb))) { in efs_map_block()
231 printk(KERN_ERR "EFS: map_block() failed to map block %u (dir)\n", block); in efs_map_block()
236 printk(KERN_DEBUG "EFS: map_block(): indirect search for logical block %u\n", block); in efs_map_block()
259 …rintk(KERN_ERR "EFS: couldn't find direct extent for indirect extent %d (block %u)\n", cur, block); in efs_map_block()
296 if ((result = efs_extent_check(&ext, block, sb))) { in efs_map_block()
303 printk(KERN_ERR "EFS: map_block() failed to map block %u (indir)\n", block); in efs_map_block()