Searched refs:file_block (Results 1 – 3 of 3) sorted by relevance
198 block_map(struct open_file *f, ufs2_daddr_t file_block, in block_map() argument231 if (file_block < NDADDR) { in block_map()233 *disk_block_p = DIP(fp, di_db[file_block]); in block_map()237 file_block -= NDADDR; in block_map()246 if (file_block < fp->f_nindir[level]) in block_map()248 file_block -= fp->f_nindir[level]; in block_map()281 idx = file_block / fp->f_nindir[level - 1]; in block_map()282 file_block %= fp->f_nindir[level - 1]; in block_map()284 idx = file_block; in block_map()306 ufs_lbn_t file_block; in buf_write_file() local[all …]
99 block_map (int file_block) in block_map() argument103 if (file_block < NDADDR) in block_map()104 return (INODE->i_db[file_block]); in block_map()113 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()139 return (((int *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()
123 block_map (int file_block) in block_map() argument127 if (file_block < NDADDR) in block_map()128 return (INODE_UFS2->di_db[file_block]); in block_map()138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()164 return (((grub_int64_t *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()