Lines Matching refs:cpos
49 unsigned int cpos, in __ocfs2_extent_map_lookup() argument
60 if (cpos >= emi->ei_cpos && cpos < range) { in __ocfs2_extent_map_lookup()
69 static int ocfs2_extent_map_lookup(struct inode *inode, unsigned int cpos, in ocfs2_extent_map_lookup() argument
79 __ocfs2_extent_map_lookup(&oi->ip_extent_map, cpos, &emi); in ocfs2_extent_map_lookup()
81 coff = cpos - emi->ei_cpos; in ocfs2_extent_map_lookup()
100 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cpos) in ocfs2_extent_map_trunc() argument
110 if (emi->ei_cpos >= cpos) { in ocfs2_extent_map_trunc()
119 if (range > cpos) { in ocfs2_extent_map_trunc()
121 emi->ei_clusters = cpos - emi->ei_cpos; in ocfs2_extent_map_trunc()
663 u32 cpos, num_clusters, p_cluster; in ocfs2_extent_map_get_blocks() local
666 cpos = ocfs2_blocks_to_clusters(inode->i_sb, v_blkno); in ocfs2_extent_map_get_blocks()
668 ret = ocfs2_get_clusters(inode, cpos, &p_cluster, &num_clusters, in ocfs2_extent_map_get_blocks()
738 u32 mapping_end, cpos; in ocfs2_fiemap() local
766 cpos = map_start >> osb->s_clustersize_bits; in ocfs2_fiemap()
770 while (cpos < mapping_end && !is_last) { in ocfs2_fiemap()
773 ret = ocfs2_get_clusters_nocache(inode, di_bh, cpos, in ocfs2_fiemap()
781 cpos += hole_size; in ocfs2_fiemap()
801 cpos = le32_to_cpu(rec.e_cpos)+ le16_to_cpu(rec.e_leaf_clusters); in ocfs2_fiemap()
823 u32 mapping_end, cpos; in ocfs2_overwrite_io() local
834 cpos = map_start >> osb->s_clustersize_bits; in ocfs2_overwrite_io()
838 while (cpos < mapping_end && !is_last) { in ocfs2_overwrite_io()
839 ret = ocfs2_get_clusters_nocache(inode, di_bh, cpos, in ocfs2_overwrite_io()
852 cpos = le32_to_cpu(rec.e_cpos) + in ocfs2_overwrite_io()
856 if (cpos < mapping_end) in ocfs2_overwrite_io()
868 u32 cpos, cend, clen, hole_size; in ocfs2_seek_data_hole_offset() local
895 cpos = *offset >> cs_bits; in ocfs2_seek_data_hole_offset()
898 while (cpos < cend && !is_last) { in ocfs2_seek_data_hole_offset()
899 ret = ocfs2_get_clusters_nocache(inode, di_bh, cpos, &hole_size, in ocfs2_seek_data_hole_offset()
906 extoff = cpos; in ocfs2_seek_data_hole_offset()
914 (cpos - le32_to_cpu(rec.e_cpos)); in ocfs2_seek_data_hole_offset()
926 cpos += clen; in ocfs2_seek_data_hole_offset()
930 extoff = cpos; in ocfs2_seek_data_hole_offset()