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()
147 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
151 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
165 static inline int __hfs_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) in __hfs_ext_cache_extent() argument
176 block, HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); in __hfs_ext_cache_extent()
187 static int hfs_ext_read_extent(struct inode *inode, u16 block) in hfs_ext_read_extent() argument
192 if (block >= HFS_I(inode)->cached_start && in hfs_ext_read_extent()
193 block < HFS_I(inode)->cached_start + HFS_I(inode)->cached_blocks) in hfs_ext_read_extent()
198 res = __hfs_ext_cache_extent(&fd, inode, block); in hfs_ext_read_extent()
211 be16_to_cpu(extent[i].block), in hfs_dump_extent()
226 start = be16_to_cpu(extent->block); in hfs_add_extent()
231 extent->block = cpu_to_be16(alloc_block); in hfs_add_extent()
263 start = be16_to_cpu(extent->block); in hfs_free_extents()
266 extent->block = 0; in hfs_free_extents()
332 int hfs_get_block(struct inode *inode, sector_t block, in hfs_get_block() argument
341 ablock = (u32)block / HFS_SB(sb)->fs_div; in hfs_get_block()
343 if (block >= HFS_I(inode)->fs_blocks) { in hfs_get_block()
344 if (block > HFS_I(inode)->fs_blocks || !create) in hfs_get_block()
373 (u32)block % HFS_SB(sb)->fs_div); in hfs_get_block()
413 HFS_I(inode)->first_extents[0].block = cpu_to_be16(start); in hfs_extend_file()
459 HFS_I(inode)->cached_extents[0].block = cpu_to_be16(start); in hfs_extend_file()