Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/ocfs2/
Dextent_map.c51 unsigned int cpos, in __ocfs2_extent_map_lookup() argument
62 if (cpos >= emi->ei_cpos && cpos < range) { in __ocfs2_extent_map_lookup()
71 static int ocfs2_extent_map_lookup(struct inode *inode, unsigned int cpos, in ocfs2_extent_map_lookup() argument
81 __ocfs2_extent_map_lookup(&oi->ip_extent_map, cpos, &emi); in ocfs2_extent_map_lookup()
83 coff = cpos - emi->ei_cpos; in ocfs2_extent_map_lookup()
102 void ocfs2_extent_map_trunc(struct inode *inode, unsigned int cpos) in ocfs2_extent_map_trunc() argument
112 if (emi->ei_cpos >= cpos) { in ocfs2_extent_map_trunc()
121 if (range > cpos) { in ocfs2_extent_map_trunc()
123 emi->ei_clusters = cpos - emi->ei_cpos; in ocfs2_extent_map_trunc()
665 u32 cpos, num_clusters, p_cluster; in ocfs2_extent_map_get_blocks() local
[all …]
Drefcounttree.h37 handle_t *handle, u32 cpos, u32 len,
49 u32 cpos, u32 write_len, u32 max_cpos);
77 u32 cpos, u32 write_len,
81 u32 cpos, u32 old_cluster,
85 u32 cpos, u32 old_cluster,
89 u32 cpos, u32 num_clusters);
94 u32 cpos, u32 p_cluster, u32 num_clusters,
103 u64 cpos, u32 len,
Drefcounttree.c63 u32 cpos, u32 old_cluster,
878 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() argument
891 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl()
893 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl()
904 ret_rec->r_cpos = cpu_to_le64(cpos); in ocfs2_find_refcount_rec_in_rl()
907 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl()
909 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl()
965 u32 cpos; in ocfs2_get_refcount_cpos_end() local
1005 cpos = le32_to_cpu(eb->h_list.l_recs[index].e_cpos); in ocfs2_get_refcount_cpos_end()
1006 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end()
[all …]
Dalloc.h85 u32 cpos,
115 handle_t *handle, u32 cpos, u32 len, u32 phys,
120 u32 cpos, u32 len, u32 phys,
125 u32 cpos, u32 len,
130 u32 cpos, u32 phys_cpos, u32 len, int flags,
226 struct ocfs2_extent_list *root_el, u32 cpos,
295 u32 cpos);
306 struct ocfs2_path *path, u32 *cpos);
308 struct ocfs2_path *path, u32 *cpos);
Dmove_extents.c53 u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, in __ocfs2_move_extent() argument
65 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent()
73 replace_rec.e_cpos = cpu_to_le32(cpos); in __ocfs2_move_extent()
85 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent()
93 index = ocfs2_search_extent_list(el, cpos); in __ocfs2_move_extent()
97 (unsigned long long)ino, cpos); in __ocfs2_move_extent()
208 u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) in ocfs2_defrag_extent() argument
314 mlog(0, "cpos: %u, phys_cpos: %u, new_phys_cpos: %u\n", cpos, in ocfs2_defrag_extent()
317 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent()
329 ret = ocfs2_cow_sync_writeback(inode->i_sb, context->inode, cpos, *len); in ocfs2_defrag_extent()
[all …]
Docfs2_trace.h503 TP_PROTO(unsigned long long owner, unsigned int cpos,
506 TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
509 __field(unsigned int, cpos)
517 __entry->cpos = cpos;
524 __entry->owner, __entry->cpos, __entry->len, __entry->index,
604 TP_PROTO(unsigned long long owner, unsigned int cpos,
606 TP_ARGS(owner, cpos, len, phys),
609 __field(unsigned int, cpos)
615 __entry->cpos = cpos;
620 __entry->owner, __entry->cpos,
[all …]
Dalloc.c1788 struct ocfs2_extent_list *root_el, u32 cpos, in __ocfs2_find_path() argument
1821 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path()
1895 struct ocfs2_path *path, u32 cpos) in ocfs2_find_path() argument
1901 return __ocfs2_find_path(ci, path_root_el(path), cpos, in ocfs2_find_path()
1927 struct ocfs2_extent_list *root_el, u32 cpos, in ocfs2_find_leaf() argument
1933 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh); in ocfs2_find_leaf()
2211 struct ocfs2_path *path, u32 *cpos) in ocfs2_find_cpos_for_left_leaf() argument
2219 *cpos = 0; in ocfs2_find_cpos_for_left_leaf()
2252 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2253 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
[all …]
Dfile.c342 u32 phys, cpos = offset >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_cow_file_pos() local
354 status = ocfs2_get_clusters(inode, cpos, &phys, in ocfs2_cow_file_pos()
364 return ocfs2_refcount_cow(inode, fe_bh, cpos, 1, cpos+1); in ocfs2_cow_file_pos()
1441 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1469 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_allocate_unwritten_extents()
1471 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1474 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, in ocfs2_allocate_unwritten_extents()
1496 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents()
1504 cpos += alloc_size; in ocfs2_allocate_unwritten_extents()
2131 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
[all …]
Daops.c510 u32 cpos, in ocfs2_figure_cluster_boundaries() argument
521 cluster_start = cpos % cpp; in ocfs2_figure_cluster_boundaries()
545 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() argument
551 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end); in ocfs2_clear_page_regions()
946 struct page *page, u32 cpos, in ocfs2_prepare_page_for_write() argument
955 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write()
1017 cpos, user_data_from, user_data_to); in ocfs2_prepare_page_for_write()
1030 u32 cpos, loff_t user_pos, in ocfs2_grab_pages_for_write() argument
1050 start = ocfs2_align_clusters_to_page_index(inode->i_sb, cpos); in ocfs2_grab_pages_for_write()
1124 struct ocfs2_write_ctxt *wc, u32 cpos, in ocfs2_write_cluster() argument
[all …]
Dxattr.c275 u64 blkno, u32 cpos, u32 len, void *para);
286 u32 cpos,
767 u32 cpos, u32 phys_cpos, u32 len, in __ocfs2_remove_xattr_range() argument
785 ret = ocfs2_remove_extent(handle, &et, cpos, len, ctxt->meta_ac, in __ocfs2_remove_xattr_range()
818 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local
824 cpos = new_clusters; in ocfs2_xattr_shrink_size()
827 ret = ocfs2_xattr_get_clusters(inode, cpos, &phys_cpos, in ocfs2_xattr_shrink_size()
838 ret = __ocfs2_remove_xattr_range(inode, vb, cpos, in ocfs2_xattr_shrink_size()
849 cpos += alloc_size; in ocfs2_xattr_shrink_size()
1106 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
[all …]
Ddir.c852 u32 cpos; in ocfs2_dx_dir_lookup() local
856 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup()
863 cend = cpos + clen; in ocfs2_dx_dir_lookup()
867 cpos += clen - 1; in ocfs2_dx_dir_lookup()
870 name_hash - cpos); in ocfs2_dx_dir_lookup()
871 cpos = name_hash; in ocfs2_dx_dir_lookup()
884 *ret_cpos = cpos; in ocfs2_dx_dir_lookup()
2430 u32 cpos, handle_t *handle, in __ocfs2_dx_dir_new_cluster() argument
2471 u32 cpos, handle_t *handle, in ocfs2_dx_dir_new_cluster() argument
2480 ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handle, data_ac, dx_leaves, in ocfs2_dx_dir_new_cluster()
[all …]
/kernel/linux/linux-5.10/fs/ubifs/
Dlprops.c90 int val1, val2, val3, cpos; in adjust_lpt_heap() local
120 cpos = hpos * 2 + 1; in adjust_lpt_heap()
121 if (cpos >= heap->cnt) in adjust_lpt_heap()
123 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
126 if (cpos + 1 < heap->cnt) { in adjust_lpt_heap()
127 val3 = get_heap_comp_val(heap->arr[cpos + 1], in adjust_lpt_heap()
130 cpos += 1; /* Right child is bigger */ in adjust_lpt_heap()
132 heap->arr[cpos]->hpos = hpos; in adjust_lpt_heap()
133 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
134 heap->arr[cpos] = lprops; in adjust_lpt_heap()
[all …]
/kernel/linux/linux-5.10/fs/fat/
Ddir.c473 loff_t cpos = 0; in fat_search_long() local
478 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in fat_search_long()
489 int status = fat_parse_long(inode, &cpos, &bh, &de, in fat_search_long()
528 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
567 loff_t cpos; in __fat_readdir() local
573 cpos = ctx->pos; in __fat_readdir()
580 cpos = 0; in __fat_readdir()
583 if (cpos & (sizeof(struct msdos_dir_entry) - 1)) { in __fat_readdir()
590 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in __fat_readdir()
611 int status = fat_parse_long(inode, &cpos, &bh, &de, in __fat_readdir()
[all …]
/kernel/linux/linux-5.10/fs/exfat/
Ddir.c66 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry) in exfat_readdir() argument
77 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF; in exfat_readdir()
173 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext); in exfat_readdir()
189 *cpos = EXFAT_DEN_TO_B(dentry); in exfat_readdir()
228 loff_t cpos, i_pos; in exfat_iterate() local
234 cpos = ctx->pos; in exfat_iterate()
239 cpos = 0; in exfat_iterate()
243 if (cpos & (DENTRY_SIZE - 1)) { in exfat_iterate()
253 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos >= i_size_read(inode)) in exfat_iterate()
256 err = exfat_readdir(inode, &cpos, &de); in exfat_iterate()
[all …]
/kernel/linux/linux-5.10/block/
Dsed-opal.c433 const u8 *epos = dev->resp, *cpos = dev->resp; in opal_discovery0_end() local
447 cpos += sizeof(*hdr); /* current position on buffer */ in opal_discovery0_end()
449 while (cpos < epos && supported) { in opal_discovery0_end()
451 (const struct d0_features *)cpos; in opal_discovery0_end()
488 cpos += body->length + 4; in opal_discovery0_end()
/kernel/linux/linux-5.10/fs/ntfs/
Dfile.c573 VCN vcn, highest_vcn = 0, cpos, cend, bh_cpos, bh_cend; in ntfs_prepare_pages_for_non_resident_write() local
632 cpos = pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
933 if ((bh_cend <= cpos || bh_cpos >= cend)) { in ntfs_prepare_pages_for_non_resident_write()
/kernel/linux/patches/linux-5.10/hispark_taurus_patch/
Dhispark_taurus.patch57311 loff_t cpos;
57442 + loff_t cpos;
57449 + cpos = ctx->pos;
57456 + cpos = 0;
57459 + if (cpos & (sizeof(struct msdos_dir_entry) - 1)) {
57466 + if (fat_get_entry(inode, &cpos, &bh, &de) == -1)
57487 + int status = fat_parse_long(inode, &cpos, &bh, &de,
57490 + ctx->pos = cpos;
57533 + ctx->pos = cpos - (nr_slots + 1)
57564 + ctx->pos = cpos;
[all …]
/kernel/linux/patches/linux-4.19/hispark_taurus_patch/
Dhispark_taurus.patch359664 loff_t cpos;
359795 + loff_t cpos;
359802 + cpos = ctx->pos;
359809 + cpos = 0;
359812 + if (cpos & (sizeof(struct msdos_dir_entry) - 1)) {
359819 + if (fat_get_entry(inode, &cpos, &bh, &de) == -1)
359840 + int status = fat_parse_long(inode, &cpos, &bh, &de,
359843 + ctx->pos = cpos;
359886 + ctx->pos = cpos - (nr_slots + 1)
359917 + ctx->pos = cpos;
[all …]