Lines Matching refs:iblock
88 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
92 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock));
94 phys = qnx4_block_map( inode, iblock );
102 unsigned long qnx4_block_map( struct inode *inode, long iblock )
112 if ( iblock < le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size) ) {
113 // iblock is in the first extent. This is easy.
114 block = le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_blk) + iblock - 1;
116 // iblock is beyond first extent. We have to follow the extent chain.
118 offset = iblock - le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size);
151 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block));