Lines Matching refs:iblock
184 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
188 QNX4DEBUG(("qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock));
190 phys = qnx4_block_map( inode, iblock );
200 unsigned long qnx4_block_map( struct inode *inode, long iblock )
210 if ( iblock < le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size) ) {
211 // iblock is in the first extent. This is easy.
212 block = le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_blk) + iblock - 1;
214 // iblock is beyond first extent. We have to follow the extent chain.
216 offset = iblock - le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size);
249 QNX4DEBUG(("qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block));