Lines Matching refs:lblock
234 static sector_t metapage_get_blocks(struct inode *inode, sector_t lblock, in metapage_get_blocks() argument
243 if (lblock >= file_blocks) in metapage_get_blocks()
245 if (lblock + *len > file_blocks) in metapage_get_blocks()
246 *len = file_blocks - lblock; in metapage_get_blocks()
249 rc = xtLookup(inode, (s64)lblock, *len, &xflag, &xaddr, len, 0); in metapage_get_blocks()
251 lblock = (sector_t)xaddr; in metapage_get_blocks()
253 lblock = 0; in metapage_get_blocks()
256 return lblock; in metapage_get_blocks()
345 sector_t lblock; in metapage_writepage() local
381 lblock = page_start + block_offset; in metapage_writepage()
383 if (xlen && lblock == next_block) { in metapage_writepage()
407 pblock = metapage_get_blocks(inode, lblock, &xlen); in metapage_writepage()
431 next_block = lblock + len; in metapage_writepage()
575 struct metapage *__get_metapage(struct inode *inode, unsigned long lblock, in __get_metapage() argument
588 inode->i_ino, lblock, absolute); in __get_metapage()
592 page_index = lblock >> l2BlocksPerPage; in __get_metapage()
593 page_offset = (lblock - (page_index << l2BlocksPerPage)) << l2bsize; in __get_metapage()
596 jfs_err("lblock = %lx, size = %d", lblock, size); in __get_metapage()
608 if ((lblock << inode->i_blkbits) >= inode->i_size) in __get_metapage()
663 mp->index = lblock; in __get_metapage()
766 sector_t lblock; in __invalidate_metapages() local
780 for (lblock = addr & ~(BlocksPerPage - 1); lblock < addr + len; in __invalidate_metapages()
781 lblock += BlocksPerPage) { in __invalidate_metapages()
782 page = find_lock_page(mapping, lblock >> l2BlocksPerPage); in __invalidate_metapages()