Lines Matching refs:p_blkno
143 u64 p_blkno, count, past_eof; in ocfs2_get_block() local
159 err = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno, &count, in ocfs2_get_block()
164 (unsigned long long)p_blkno); in ocfs2_get_block()
182 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
189 if (p_blkno && !(ext_flags & OCFS2_EXT_UNWRITTEN)) in ocfs2_get_block()
190 map_bh(bh_result, inode->i_sb, p_blkno); in ocfs2_get_block()
195 if (p_blkno == 0) { in ocfs2_get_block()
200 (unsigned long long)p_blkno, in ocfs2_get_block()
460 u64 p_blkno = 0; in ocfs2_bmap() local
490 err = ocfs2_extent_map_get_blocks(inode, block, &p_blkno, NULL, in ocfs2_bmap()
506 status = err ? 0 : p_blkno; in ocfs2_bmap()
604 int ocfs2_map_page_blocks(struct page *page, u64 *p_blkno, in ocfs2_map_page_blocks() argument
641 map_bh(bh, inode->i_sb, *p_blkno); in ocfs2_map_page_blocks()
656 *p_blkno = *p_blkno + 1; in ocfs2_map_page_blocks()
953 static int ocfs2_prepare_page_for_write(struct inode *inode, u64 *p_blkno, in ocfs2_prepare_page_for_write() argument
978 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
982 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
1006 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
1137 u64 p_blkno; in ocfs2_write_cluster() local
1196 p_blkno = ocfs2_clusters_to_blocks(inode->i_sb, *phys); in ocfs2_write_cluster()
1198 p_blkno += (user_pos >> inode->i_sb->s_blocksize_bits) & (u64)(bpc - 1); in ocfs2_write_cluster()
1205 p_blkno++; in ocfs2_write_cluster()
1209 tmpret = ocfs2_prepare_page_for_write(inode, &p_blkno, wc, in ocfs2_write_cluster()
2149 u64 p_blkno; in ocfs2_dio_wr_get_block() local
2248 p_blkno = ocfs2_clusters_to_blocks(inode->i_sb, desc->c_phys); in ocfs2_dio_wr_get_block()
2249 BUG_ON(p_blkno == 0); in ocfs2_dio_wr_get_block()
2250 p_blkno += iblock & (u64)(ocfs2_clusters_to_blocks(inode->i_sb, 1) - 1); in ocfs2_dio_wr_get_block()
2252 map_bh(bh_result, inode->i_sb, p_blkno); in ocfs2_dio_wr_get_block()