Lines Matching refs:p_blkno

140 	u64 p_blkno, count, past_eof;  in ocfs2_get_block()  local
156 err = ocfs2_extent_map_get_blocks(inode, iblock, &p_blkno, &count, in ocfs2_get_block()
178 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
185 if (p_blkno && !(ext_flags & OCFS2_EXT_UNWRITTEN)) in ocfs2_get_block()
186 map_bh(bh_result, inode->i_sb, p_blkno); in ocfs2_get_block()
191 if (p_blkno == 0) { in ocfs2_get_block()
196 (unsigned long long)p_blkno, in ocfs2_get_block()
444 u64 p_blkno = 0; in ocfs2_bmap() local
474 err = ocfs2_extent_map_get_blocks(inode, block, &p_blkno, NULL, in ocfs2_bmap()
490 status = err ? 0 : p_blkno; in ocfs2_bmap()
588 int ocfs2_map_page_blocks(struct page *page, u64 *p_blkno, in ocfs2_map_page_blocks() argument
626 map_bh(bh, inode->i_sb, *p_blkno); in ocfs2_map_page_blocks()
640 *p_blkno = *p_blkno + 1; in ocfs2_map_page_blocks()
937 static int ocfs2_prepare_page_for_write(struct inode *inode, u64 *p_blkno, in ocfs2_prepare_page_for_write() argument
962 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
966 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
990 ret = ocfs2_map_page_blocks(page, p_blkno, inode, in ocfs2_prepare_page_for_write()
1121 u64 p_blkno; in ocfs2_write_cluster() local
1180 p_blkno = ocfs2_clusters_to_blocks(inode->i_sb, *phys); in ocfs2_write_cluster()
1182 p_blkno += (user_pos >> inode->i_sb->s_blocksize_bits) & (u64)(bpc - 1); in ocfs2_write_cluster()
1189 p_blkno += (1 << (PAGE_SHIFT - inode->i_sb->s_blocksize_bits)); in ocfs2_write_cluster()
1193 tmpret = ocfs2_prepare_page_for_write(inode, &p_blkno, wc, in ocfs2_write_cluster()
2148 u64 p_blkno; in ocfs2_dio_wr_get_block() local
2247 p_blkno = ocfs2_clusters_to_blocks(inode->i_sb, desc->c_phys); in ocfs2_dio_wr_get_block()
2248 BUG_ON(p_blkno == 0); in ocfs2_dio_wr_get_block()
2249 p_blkno += iblock & (u64)(ocfs2_clusters_to_blocks(inode->i_sb, 1) - 1); in ocfs2_dio_wr_get_block()
2251 map_bh(bh_result, inode->i_sb, p_blkno); in ocfs2_dio_wr_get_block()