• Home
  • Raw
  • Download

Lines Matching refs:block

21 static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type)  in hfs_ext_build_key()  argument
26 key->ext.FABN = cpu_to_be16(block); in hfs_ext_build_key()
82 return be16_to_cpu(ext->block) + off; in hfs_ext_find_block()
107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock()
151 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
169 static inline int __hfs_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) in __hfs_ext_cache_extent() argument
180 block, HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); in __hfs_ext_cache_extent()
191 static int hfs_ext_read_extent(struct inode *inode, u16 block) in hfs_ext_read_extent() argument
196 if (block >= HFS_I(inode)->cached_start && in hfs_ext_read_extent()
197 block < HFS_I(inode)->cached_start + HFS_I(inode)->cached_blocks) in hfs_ext_read_extent()
202 res = __hfs_ext_cache_extent(&fd, inode, block); in hfs_ext_read_extent()
215 be16_to_cpu(extent[i].block), in hfs_dump_extent()
230 start = be16_to_cpu(extent->block); in hfs_add_extent()
235 extent->block = cpu_to_be16(alloc_block); in hfs_add_extent()
267 start = be16_to_cpu(extent->block); in hfs_free_extents()
270 extent->block = 0; in hfs_free_extents()
336 int hfs_get_block(struct inode *inode, sector_t block, in hfs_get_block() argument
345 ablock = (u32)block / HFS_SB(sb)->fs_div; in hfs_get_block()
347 if (block >= HFS_I(inode)->fs_blocks) { in hfs_get_block()
350 if (block > HFS_I(inode)->fs_blocks) in hfs_get_block()
379 (u32)block % HFS_SB(sb)->fs_div); in hfs_get_block()
419 HFS_I(inode)->first_extents[0].block = cpu_to_be16(start); in hfs_extend_file()
465 HFS_I(inode)->cached_extents[0].block = cpu_to_be16(start); in hfs_extend_file()