Home
last modified time | relevance | path

Searched refs:cpos (Results 1 – 14 of 14) sorted by relevance

/fs/ocfs2/
Drefcounttree.c70 u32 cpos, u32 old_cluster,
881 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() argument
894 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl()
896 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl()
907 ret_rec->r_cpos = cpu_to_le64(cpos); in ocfs2_find_refcount_rec_in_rl()
910 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl()
912 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl()
968 u32 cpos; in ocfs2_get_refcount_cpos_end() local
1008 cpos = le32_to_cpu(eb->h_list.l_recs[index].e_cpos); in ocfs2_get_refcount_cpos_end()
1009 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end()
[all …]
Drefcounttree.h45 handle_t *handle, u32 cpos, u32 len,
57 u32 cpos, u32 write_len, u32 max_cpos);
85 u32 cpos, u32 write_len,
89 u32 cpos, u32 old_cluster,
93 u32 cpos, u32 old_cluster,
97 u32 cpos, u32 num_clusters);
102 u32 cpos, u32 p_cluster, u32 num_clusters,
111 u64 cpos, u32 len,
Dextent_map.c63 unsigned int cpos, in __ocfs2_extent_map_lookup() argument
74 if (cpos >= emi->ei_cpos && cpos < range) { in __ocfs2_extent_map_lookup()
83 static int ocfs2_extent_map_lookup(struct inode *inode, unsigned int cpos, in ocfs2_extent_map_lookup() argument
93 __ocfs2_extent_map_lookup(&oi->ip_extent_map, cpos, &emi); in ocfs2_extent_map_lookup()
95 coff = cpos - emi->ei_cpos; in ocfs2_extent_map_lookup()
114 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cpos) in ocfs2_extent_map_trunc() argument
124 if (emi->ei_cpos >= cpos) { in ocfs2_extent_map_trunc()
133 if (range > cpos) { in ocfs2_extent_map_trunc()
135 emi->ei_clusters = cpos - emi->ei_cpos; in ocfs2_extent_map_trunc()
677 u32 cpos, num_clusters, p_cluster; in ocfs2_extent_map_get_blocks() local
[all …]
Dalloc.h98 u32 cpos,
128 handle_t *handle, u32 cpos, u32 len, u32 phys,
133 u32 cpos, u32 len, u32 phys,
138 u32 cpos, u32 len,
143 u32 cpos, u32 phys_cpos, u32 len, int flags,
238 struct ocfs2_extent_list *root_el, u32 cpos,
307 u32 cpos);
318 struct ocfs2_path *path, u32 *cpos);
320 struct ocfs2_path *path, u32 *cpos);
Dmove_extents.c60 u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, in __ocfs2_move_extent() argument
72 ret = ocfs2_duplicate_clusters_by_page(handle, context->file, cpos, in __ocfs2_move_extent()
80 replace_rec.e_cpos = cpu_to_le32(cpos); in __ocfs2_move_extent()
92 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent()
100 index = ocfs2_search_extent_list(el, cpos); in __ocfs2_move_extent()
105 (unsigned long long)ino, cpos); in __ocfs2_move_extent()
227 u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) in ocfs2_defrag_extent() argument
319 mlog(0, "cpos: %u, phys_cpos: %u, new_phys_cpos: %u\n", cpos, in ocfs2_defrag_extent()
322 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent()
334 ret = ocfs2_cow_sync_writeback(inode->i_sb, context->inode, cpos, *len); in ocfs2_defrag_extent()
[all …]
Docfs2_trace.h502 TP_PROTO(unsigned long long owner, unsigned int cpos,
505 TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
508 __field(unsigned int, cpos)
516 __entry->cpos = cpos;
523 __entry->owner, __entry->cpos, __entry->len, __entry->index,
603 TP_PROTO(unsigned long long owner, unsigned int cpos,
605 TP_ARGS(owner, cpos, len, phys),
608 __field(unsigned int, cpos)
614 __entry->cpos = cpos;
619 __entry->owner, __entry->cpos,
[all …]
Dalloc.c1776 struct ocfs2_extent_list *root_el, u32 cpos, in __ocfs2_find_path() argument
1810 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path()
1886 struct ocfs2_path *path, u32 cpos) in ocfs2_find_path() argument
1892 return __ocfs2_find_path(ci, path_root_el(path), cpos, in ocfs2_find_path()
1918 struct ocfs2_extent_list *root_el, u32 cpos, in ocfs2_find_leaf() argument
1924 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); in ocfs2_find_leaf()
2206 struct ocfs2_path *path, u32 *cpos) in ocfs2_find_cpos_for_left_leaf() argument
2214 *cpos = 0; in ocfs2_find_cpos_for_left_leaf()
2247 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2248 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
[all …]
Dfile.c351 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() local
363 status = ocfs2_get_clusters(inode, cpos, &phys, in ocfs2_cow_file_pos()
373 return ocfs2_refcount_cow(inode, NULL, fe_bh, cpos, 1, cpos+1); in ocfs2_cow_file_pos()
1367 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_holes() local
1370 cpos = pos >> OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_check_range_for_holes()
1371 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_holes()
1374 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &extent_len, in ocfs2_check_range_for_holes()
1390 cpos += extent_len; in ocfs2_check_range_for_holes()
1422 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1450 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_allocate_unwritten_extents()
[all …]
Daops.c649 u32 cpos, in ocfs2_figure_cluster_boundaries() argument
660 cluster_start = cpos % cpp; in ocfs2_figure_cluster_boundaries()
684 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() argument
690 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end); in ocfs2_clear_page_regions()
1046 struct page *page, u32 cpos, in ocfs2_prepare_page_for_write() argument
1055 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write()
1117 cpos, user_data_from, user_data_to); in ocfs2_prepare_page_for_write()
1130 u32 cpos, loff_t user_pos, in ocfs2_grab_pages_for_write() argument
1150 start = ocfs2_align_clusters_to_page_index(inode->i_sb, cpos); in ocfs2_grab_pages_for_write()
1215 struct ocfs2_write_ctxt *wc, u32 cpos, in ocfs2_write_cluster() argument
[all …]
Dxattr.c283 u64 blkno, u32 cpos, u32 len, void *para);
294 u32 cpos,
773 u32 cpos, u32 phys_cpos, u32 len, in __ocfs2_remove_xattr_range() argument
791 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
824 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local
830 cpos = new_clusters; in ocfs2_xattr_shrink_size()
833 ret = ocfs2_xattr_get_clusters(inode, cpos, &phys_cpos, in ocfs2_xattr_shrink_size()
844 ret = __ocfs2_remove_xattr_range(inode, vb, cpos, in ocfs2_xattr_shrink_size()
855 cpos += alloc_size; in ocfs2_xattr_shrink_size()
1090 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
[all …]
Ddir.c880 u32 uninitialized_var(cpos); in ocfs2_dx_dir_lookup()
884 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup()
891 cend = cpos + clen; in ocfs2_dx_dir_lookup()
895 cpos += clen - 1; in ocfs2_dx_dir_lookup()
898 name_hash - cpos); in ocfs2_dx_dir_lookup()
899 cpos = name_hash; in ocfs2_dx_dir_lookup()
912 *ret_cpos = cpos; in ocfs2_dx_dir_lookup()
2521 u32 cpos, handle_t *handle, in __ocfs2_dx_dir_new_cluster() argument
2562 u32 cpos, handle_t *handle, in ocfs2_dx_dir_new_cluster() argument
2571 ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handle, data_ac, dx_leaves, in ocfs2_dx_dir_new_cluster()
[all …]
/fs/ubifs/
Dlprops.c102 int val1, val2, val3, cpos; in adjust_lpt_heap() local
132 cpos = hpos * 2 + 1; in adjust_lpt_heap()
133 if (cpos >= heap->cnt) in adjust_lpt_heap()
135 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
138 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap()
139 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap()
142 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap()
144 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap()
145 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
146 heap->arr[cpos] = lprops; in adjust_lpt_heap()
[all …]
/fs/fat/
Ddir.c354 loff_t cpos = 0; in fat_search_long() local
359 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in fat_search_long()
370 int status = fat_parse_long(inode, &cpos, &bh, &de, in fat_search_long()
440 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
484 loff_t cpos; in __fat_readdir() local
490 cpos = filp->f_pos; in __fat_readdir()
493 while (cpos < 2) { in __fat_readdir()
494 if (filldir(dirent, "..", cpos+1, cpos, MSDOS_ROOT_INO, DT_DIR) < 0) in __fat_readdir()
496 cpos++; in __fat_readdir()
499 if (cpos == 2) { in __fat_readdir()
[all …]
/fs/ntfs/
Dfile.c483 VCN vcn, highest_vcn = 0, cpos, cend, bh_cpos, bh_cend; in ntfs_prepare_pages_for_non_resident_write() local
542 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
844 if ((bh_cend <= cpos || bh_cpos >= cend)) { in ntfs_prepare_pages_for_non_resident_write()