/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | extent_map.c | 51 unsigned int cpos, in __ocfs2_extent_map_lookup() 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() 100 * Forget about all clusters equal to or greater than cpos. 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() 50 __ocfs2_extent_map_lookup(struct ocfs2_extent_map *em, unsigned int cpos, struct ocfs2_extent_map_item **ret_emi) __ocfs2_extent_map_lookup() argument 665 u32 cpos, num_clusters, p_cluster; ocfs2_extent_map_get_blocks() local 740 u32 mapping_end, cpos; ocfs2_fiemap() local 825 u32 mapping_end, cpos; ocfs2_overwrite_io() local 870 u32 cpos, cend, clen, hole_size; ocfs2_seek_data_hole_offset() local [all...] |
H A D | refcounttree.h | 37 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,
|
H A D | refcounttree.c | 63 u32 cpos, u32 old_cluster, 878 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() 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() 896 /* ok, cpos fail in this rec. Just return. */ 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 983 * We are the last extent rec, so any high cpos shoul in ocfs2_get_refcount_cpos_end() 876 ocfs2_find_refcount_rec_in_rl(struct ocfs2_caching_info *ci, struct buffer_head *ref_leaf_bh, u64 cpos, unsigned int len, struct ocfs2_refcount_rec *ret_rec, int *index) ocfs2_find_refcount_rec_in_rl() argument 1058 ocfs2_get_refcount_rec(struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, unsigned int len, struct ocfs2_refcount_rec *ret_rec, int *index, struct buffer_head **ret_bh) ocfs2_get_refcount_rec() argument 1453 u32 cpos = 0; ocfs2_divide_leaf_refcount_block() local 1753 u64 cpos = le64_to_cpu(rec->r_cpos); ocfs2_insert_refcount_rec() local 1880 u64 cpos = le64_to_cpu(orig_rec->r_cpos); ocfs2_split_refcount_rec() local 1980 __ocfs2_increase_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, int merge, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) __ocfs2_increase_refcount() argument 2154 ocfs2_increase_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_increase_refcount() argument 2166 ocfs2_decrease_refcount_rec(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, struct buffer_head *ref_leaf_bh, int index, u64 cpos, unsigned int len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_decrease_refcount_rec() argument 2222 __ocfs2_decrease_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int delete) __ocfs2_decrease_refcount() argument 2288 ocfs2_decrease_refcount(struct inode *inode, handle_t *handle, u32 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int delete) ocfs2_decrease_refcount() argument 2338 ocfs2_mark_extent_refcounted(struct inode *inode, struct ocfs2_extent_tree *et, handle_t *handle, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_mark_extent_refcounted() argument 2379 u64 cpos = start_cpos; ocfs2_calc_refcount_meta_credits() local 2591 ocfs2_cow_align_start(struct super_block *sb, unsigned int start, unsigned int cpos) ocfs2_cow_align_start() argument 2629 ocfs2_refcount_cal_cow_clusters(struct inode *inode, struct ocfs2_extent_list *el, u32 cpos, u32 write_len, u32 max_cpos, u32 *cow_start, u32 *cow_len) ocfs2_refcount_cal_cow_clusters() argument 2905 ocfs2_duplicate_clusters_by_page(handle_t *handle, struct inode *inode, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len) ocfs2_duplicate_clusters_by_page() argument 3000 ocfs2_duplicate_clusters_by_jbd(handle_t *handle, struct inode *inode, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len) ocfs2_duplicate_clusters_by_jbd() argument 3055 ocfs2_clear_ext_refcount(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 p_cluster, u32 len, unsigned int ext_flags, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_clear_ext_refcount() argument 3113 ocfs2_replace_clusters(handle_t *handle, struct ocfs2_cow_context *context, u32 cpos, u32 old, u32 new, u32 len, unsigned int ext_flags) ocfs2_replace_clusters() argument 3145 ocfs2_cow_sync_writeback(struct super_block *sb, struct inode *inode, u32 cpos, u32 num_clusters) ocfs2_cow_sync_writeback() argument 3204 ocfs2_make_clusters_writable(struct super_block *sb, struct ocfs2_cow_context *context, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int e_flags) ocfs2_make_clusters_writable() argument 3409 ocfs2_refcount_cow_hunk(struct inode *inode, struct buffer_head *di_bh, u32 cpos, u32 write_len, u32 max_cpos) ocfs2_refcount_cow_hunk() argument 3485 ocfs2_refcount_cow(struct inode *inode, struct buffer_head *di_bh, u32 cpos, u32 write_len, u32 max_cpos) ocfs2_refcount_cow() argument 3545 u32 cpos = 0, clusters = le32_to_cpu(xv->xr_clusters); ocfs2_refcounted_xattr_delete_need() local 3621 ocfs2_refcount_cow_xattr(struct inode *inode, struct ocfs2_dinode *di, struct ocfs2_xattr_value_buf *vb, struct ocfs2_refcount_tree *ref_tree, struct buffer_head *ref_root_bh, u32 cpos, u32 write_len, struct ocfs2_post_refcount *post) ocfs2_refcount_cow_xattr() argument 3683 ocfs2_add_refcount_flag(struct inode *inode, struct ocfs2_extent_tree *data_et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_post_refcount *post) ocfs2_add_refcount_flag() argument 3805 u32 cpos, num_clusters, clusters, p_cluster; ocfs2_attach_refcount_tree() local 3896 ocfs2_add_refcounted_extent(struct inode *inode, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int ext_flags, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_add_refcounted_extent() argument 4007 u32 p_cluster, num_clusters, clusters, cpos; ocfs2_duplicate_extent_list() local [all...] |
H A D | ocfs2_trace.h | 503 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 [all...] |
H A D | alloc.h | 85 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);
|
H A D | move_extents.c | 53 u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, in __ocfs2_move_extent() 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() 96 "Inode %llu has an extent at cpos %u which can no longer be found\n", in __ocfs2_move_extent() 97 (unsigned long long)ino, cpos); in __ocfs2_move_extent() 198 u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) in ocfs2_defrag_extent() 304 mlog(0, "cpos: %u, phys_cpos: %u, new_phys_cpos: %u\n", cpos, in ocfs2_defrag_extent() 51 __ocfs2_move_extent(handle_t *handle, struct ocfs2_move_extents_context *context, u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, int ext_flags) __ocfs2_move_extent() argument 197 ocfs2_defrag_extent(struct ocfs2_move_extents_context *context, u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) ocfs2_defrag_extent() argument 564 ocfs2_move_extent(struct ocfs2_move_extents_context *context, u32 cpos, u32 phys_cpos, u32 *new_phys_cpos, u32 len, int ext_flags) ocfs2_move_extent() argument 764 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; __ocfs2_move_extents_range() local [all...] |
H A D | alloc.c | 227 "cpos %u, clusters %u\n", in ocfs2_dinode_insert_check() 1782 * Traverse a btree path in search of cpos, starting at root_el. 1784 * This code can be called with a cpos larger than the tree, in which 1788 struct ocfs2_extent_list *root_el, u32 cpos, in __ocfs2_find_path() 1815 * In the case that cpos is off the allocation in __ocfs2_find_path() 1821 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path() 1874 * which would contain cpos. 1895 struct ocfs2_path *path, u32 cpos) in ocfs2_find_path() 1901 return __ocfs2_find_path(ci, path_root_el(path), cpos, in ocfs2_find_path() 1787 __ocfs2_find_path(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *root_el, u32 cpos, path_insert_t *func, void *data) __ocfs2_find_path() argument 1894 ocfs2_find_path(struct ocfs2_caching_info *ci, struct ocfs2_path *path, u32 cpos) ocfs2_find_path() argument 1926 ocfs2_find_leaf(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *root_el, u32 cpos, struct buffer_head **leaf_bh) ocfs2_find_leaf() argument 2210 ocfs2_find_cpos_for_left_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos) ocfs2_find_cpos_for_left_leaf() argument 2323 ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) ocfs2_leftmost_rec_contains() argument 2370 u32 cpos; ocfs2_rotate_tree_right() local 2805 ocfs2_find_cpos_for_right_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos) ocfs2_find_cpos_for_right_leaf() argument 3022 u32 cpos; ocfs2_remove_rightmost_path() local 4078 u32 cpos = le32_to_cpu(split_rec->e_cpos); ocfs2_split_record() local 4244 u32 cpos; ocfs2_do_insert_extent() local 4529 u32 cpos = le32_to_cpu(insert_rec->e_cpos); ocfs2_figure_appending_type() local 4701 ocfs2_insert_extent(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u64 start_blk, u32 new_clusters, u8 flags, struct ocfs2_alloc_context *meta_ac) ocfs2_insert_extent() argument 4883 ocfs2_make_right_split_rec(struct super_block *sb, struct ocfs2_extent_rec *split_rec, u32 cpos, struct ocfs2_extent_rec *rec) ocfs2_make_right_split_rec() argument 4983 u32 cpos; ocfs2_split_and_insert() local 5150 ocfs2_change_extent_flag(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int new_flags, int clear_flags) ocfs2_change_extent_flag() argument 5238 ocfs2_mark_extent_written(struct inode *inode, struct ocfs2_extent_tree *et, handle_t *handle, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_mark_extent_written() argument 5342 ocfs2_truncate_rec(handle_t *handle, struct ocfs2_extent_tree *et, struct ocfs2_path *path, int index, struct ocfs2_cached_dealloc_ctxt *dealloc, u32 cpos, u32 len) ocfs2_truncate_rec() argument 5506 ocfs2_remove_extent(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_remove_extent() argument 5692 ocfs2_remove_btree_range(struct inode *inode, struct ocfs2_extent_tree *et, u32 cpos, u32 phys_cpos, u32 len, int flags, struct ocfs2_cached_dealloc_ctxt *dealloc, u64 refcount_loc, bool refcount_tree_locked) ocfs2_remove_btree_range() argument [all...] |
H A D | aops.c | 510 u32 cpos, in ocfs2_figure_cluster_boundaries() 521 cluster_start = cpos % cpp; in ocfs2_figure_cluster_boundaries() 545 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() 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() 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() 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() 509 ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, u32 cpos, unsigned int *start, unsigned int *end) ocfs2_figure_cluster_boundaries() argument 544 ocfs2_clear_page_regions(struct page *page, struct ocfs2_super *osb, u32 cpos, unsigned from, unsigned to) ocfs2_clear_page_regions() argument 944 ocfs2_prepare_page_for_write(struct inode *inode, u64 *p_blkno, struct ocfs2_write_ctxt *wc, struct page *page, u32 cpos, loff_t user_pos, unsigned user_len, int new) ocfs2_prepare_page_for_write() argument 1028 ocfs2_grab_pages_for_write(struct address_space *mapping, struct ocfs2_write_ctxt *wc, u32 cpos, loff_t user_pos, unsigned user_len, int new, struct page *mmap_page) ocfs2_grab_pages_for_write() argument 1118 ocfs2_write_cluster(struct address_space *mapping, u32 *phys, unsigned int new, unsigned int clear_unwritten, unsigned int should_zero, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct ocfs2_write_ctxt *wc, u32 cpos, loff_t user_pos, unsigned user_len) ocfs2_write_cluster() argument [all...] |
H A D | file.c | 342 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 in ocfs2_allocate_unwritten_extents() 2137 u32 cpos, clusters, extent_len, phys_cpos; ocfs2_check_range_for_refcount() local 2248 u32 cpos; ocfs2_prepare_inode_for_write() local [all...] |
H A D | dir.c | 858 u32 cpos; in ocfs2_dx_dir_lookup() local 862 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, in ocfs2_dx_dir_lookup() 869 cend = cpos + clen; in ocfs2_dx_dir_lookup() 873 cpos += clen - 1; in ocfs2_dx_dir_lookup() 876 name_hash - cpos); in ocfs2_dx_dir_lookup() 877 cpos = name_hash; in ocfs2_dx_dir_lookup() 890 *ret_cpos = cpos; in ocfs2_dx_dir_lookup() 2439 u32 cpos, handle_t *handle, in __ocfs2_dx_dir_new_cluster() 2480 u32 cpos, handle_t *handle, in ocfs2_dx_dir_new_cluster() 2489 ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handl in ocfs2_dx_dir_new_cluster() 2438 __ocfs2_dx_dir_new_cluster(struct inode *dir, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct buffer_head **dx_leaves, int num_dx_leaves, u64 *ret_phys_blkno) __ocfs2_dx_dir_new_cluster() argument 2478 ocfs2_dx_dir_new_cluster(struct inode *dir, struct ocfs2_extent_tree *et, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct buffer_head **dx_leaves, int num_dx_leaves) ocfs2_dx_dir_new_cluster() argument 3706 u32 cpos, split_hash, insert_hash = hinfo->major_hash; ocfs2_dx_dir_rebalance() local 4409 u32 major_hash = UINT_MAX, p_cpos, cpos; ocfs2_dx_dir_truncate() local [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | extent_map.c | 49 unsigned int cpos, in __ocfs2_extent_map_lookup() 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() 98 * Forget about all clusters equal to or greater than cpos. 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() 48 __ocfs2_extent_map_lookup(struct ocfs2_extent_map *em, unsigned int cpos, struct ocfs2_extent_map_item **ret_emi) __ocfs2_extent_map_lookup() argument 663 u32 cpos, num_clusters, p_cluster; ocfs2_extent_map_get_blocks() local 738 u32 mapping_end, cpos; ocfs2_fiemap() local 823 u32 mapping_end, cpos; ocfs2_overwrite_io() local 868 u32 cpos, cend, clen, hole_size; ocfs2_seek_data_hole_offset() local [all...] |
H A D | refcounttree.h | 35 handle_t *handle, u32 cpos, u32 len, 47 u32 cpos, u32 write_len, u32 max_cpos); 75 u32 cpos, u32 write_len, 79 u32 cpos, u32 old_cluster, 83 u32 cpos, u32 old_cluster, 87 u32 cpos, u32 num_clusters); 92 u32 cpos, u32 p_cluster, u32 num_clusters, 101 u64 cpos, u32 len,
|
H A D | refcounttree.c | 61 u32 cpos, u32 old_cluster, 876 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() 889 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl() 891 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl() 894 /* ok, cpos fail in this rec. Just return. */ in ocfs2_find_refcount_rec_in_rl() 902 ret_rec->r_cpos = cpu_to_le64(cpos); in ocfs2_find_refcount_rec_in_rl() 905 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl() 907 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl() 963 u32 cpos; in ocfs2_get_refcount_cpos_end() local 981 * We are the last extent rec, so any high cpos shoul in ocfs2_get_refcount_cpos_end() 874 ocfs2_find_refcount_rec_in_rl(struct ocfs2_caching_info *ci, struct buffer_head *ref_leaf_bh, u64 cpos, unsigned int len, struct ocfs2_refcount_rec *ret_rec, int *index) ocfs2_find_refcount_rec_in_rl() argument 1056 ocfs2_get_refcount_rec(struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, unsigned int len, struct ocfs2_refcount_rec *ret_rec, int *index, struct buffer_head **ret_bh) ocfs2_get_refcount_rec() argument 1451 u32 cpos = 0; ocfs2_divide_leaf_refcount_block() local 1751 u64 cpos = le64_to_cpu(rec->r_cpos); ocfs2_insert_refcount_rec() local 1878 u64 cpos = le64_to_cpu(orig_rec->r_cpos); ocfs2_split_refcount_rec() local 1978 __ocfs2_increase_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, int merge, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) __ocfs2_increase_refcount() argument 2152 ocfs2_increase_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_increase_refcount() argument 2164 ocfs2_decrease_refcount_rec(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, struct buffer_head *ref_leaf_bh, int index, u64 cpos, unsigned int len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_decrease_refcount_rec() argument 2220 __ocfs2_decrease_refcount(handle_t *handle, struct ocfs2_caching_info *ci, struct buffer_head *ref_root_bh, u64 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int delete) __ocfs2_decrease_refcount() argument 2286 ocfs2_decrease_refcount(struct inode *inode, handle_t *handle, u32 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int delete) ocfs2_decrease_refcount() argument 2336 ocfs2_mark_extent_refcounted(struct inode *inode, struct ocfs2_extent_tree *et, handle_t *handle, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_mark_extent_refcounted() argument 2377 u64 cpos = start_cpos; ocfs2_calc_refcount_meta_credits() local 2589 ocfs2_cow_align_start(struct super_block *sb, unsigned int start, unsigned int cpos) ocfs2_cow_align_start() argument 2627 ocfs2_refcount_cal_cow_clusters(struct inode *inode, struct ocfs2_extent_list *el, u32 cpos, u32 write_len, u32 max_cpos, u32 *cow_start, u32 *cow_len) ocfs2_refcount_cal_cow_clusters() argument 2903 ocfs2_duplicate_clusters_by_page(handle_t *handle, struct inode *inode, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len) ocfs2_duplicate_clusters_by_page() argument 3001 ocfs2_duplicate_clusters_by_jbd(handle_t *handle, struct inode *inode, u32 cpos, u32 old_cluster, u32 new_cluster, u32 new_len) ocfs2_duplicate_clusters_by_jbd() argument 3056 ocfs2_clear_ext_refcount(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 p_cluster, u32 len, unsigned int ext_flags, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_clear_ext_refcount() argument 3114 ocfs2_replace_clusters(handle_t *handle, struct ocfs2_cow_context *context, u32 cpos, u32 old, u32 new, u32 len, unsigned int ext_flags) ocfs2_replace_clusters() argument 3146 ocfs2_cow_sync_writeback(struct super_block *sb, struct inode *inode, u32 cpos, u32 num_clusters) ocfs2_cow_sync_writeback() argument 3175 ocfs2_make_clusters_writable(struct super_block *sb, struct ocfs2_cow_context *context, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int e_flags) ocfs2_make_clusters_writable() argument 3380 ocfs2_refcount_cow_hunk(struct inode *inode, struct buffer_head *di_bh, u32 cpos, u32 write_len, u32 max_cpos) ocfs2_refcount_cow_hunk() argument 3456 ocfs2_refcount_cow(struct inode *inode, struct buffer_head *di_bh, u32 cpos, u32 write_len, u32 max_cpos) ocfs2_refcount_cow() argument 3516 u32 cpos = 0, clusters = le32_to_cpu(xv->xr_clusters); ocfs2_refcounted_xattr_delete_need() local 3592 ocfs2_refcount_cow_xattr(struct inode *inode, struct ocfs2_dinode *di, struct ocfs2_xattr_value_buf *vb, struct ocfs2_refcount_tree *ref_tree, struct buffer_head *ref_root_bh, u32 cpos, u32 write_len, struct ocfs2_post_refcount *post) ocfs2_refcount_cow_xattr() argument 3654 ocfs2_add_refcount_flag(struct inode *inode, struct ocfs2_extent_tree *data_et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_post_refcount *post) ocfs2_add_refcount_flag() argument 3776 u32 cpos, num_clusters, clusters, p_cluster; ocfs2_attach_refcount_tree() local 3867 ocfs2_add_refcounted_extent(struct inode *inode, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int ext_flags, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_add_refcounted_extent() argument 3978 u32 p_cluster, num_clusters, clusters, cpos; ocfs2_duplicate_extent_list() local [all...] |
H A D | ocfs2_trace.h | 503 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 [all...] |
H A D | alloc.h | 83 u32 cpos, 113 handle_t *handle, u32 cpos, u32 len, u32 phys, 118 u32 cpos, u32 len, u32 phys, 123 u32 cpos, u32 len, 128 u32 cpos, u32 phys_cpos, u32 len, int flags, 224 struct ocfs2_extent_list *root_el, u32 cpos, 293 u32 cpos); 304 struct ocfs2_path *path, u32 *cpos); 306 struct ocfs2_path *path, u32 *cpos);
|
H A D | move_extents.c | 51 u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, in __ocfs2_move_extent() 63 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent() 71 replace_rec.e_cpos = cpu_to_le32(cpos); in __ocfs2_move_extent() 83 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent() 91 index = ocfs2_search_extent_list(el, cpos); in __ocfs2_move_extent() 94 "Inode %llu has an extent at cpos %u which can no longer be found\n", in __ocfs2_move_extent() 95 (unsigned long long)ino, cpos); in __ocfs2_move_extent() 196 u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) in ocfs2_defrag_extent() 302 mlog(0, "cpos: %u, phys_cpos: %u, new_phys_cpos: %u\n", cpos, in ocfs2_defrag_extent() 49 __ocfs2_move_extent(handle_t *handle, struct ocfs2_move_extents_context *context, u32 cpos, u32 len, u32 p_cpos, u32 new_p_cpos, int ext_flags) __ocfs2_move_extent() argument 195 ocfs2_defrag_extent(struct ocfs2_move_extents_context *context, u32 cpos, u32 phys_cpos, u32 *len, int ext_flags) ocfs2_defrag_extent() argument 562 ocfs2_move_extent(struct ocfs2_move_extents_context *context, u32 cpos, u32 phys_cpos, u32 *new_phys_cpos, u32 len, int ext_flags) ocfs2_move_extent() argument 762 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; __ocfs2_move_extents_range() local [all...] |
H A D | alloc.c | 225 "cpos %u, clusters %u\n", in ocfs2_dinode_insert_check() 1780 * Traverse a btree path in search of cpos, starting at root_el. 1782 * This code can be called with a cpos larger than the tree, in which 1786 struct ocfs2_extent_list *root_el, u32 cpos, in __ocfs2_find_path() 1813 * In the case that cpos is off the allocation in __ocfs2_find_path() 1819 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path() 1872 * which would contain cpos. 1893 struct ocfs2_path *path, u32 cpos) in ocfs2_find_path() 1899 return __ocfs2_find_path(ci, path_root_el(path), cpos, in ocfs2_find_path() 1785 __ocfs2_find_path(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *root_el, u32 cpos, path_insert_t *func, void *data) __ocfs2_find_path() argument 1892 ocfs2_find_path(struct ocfs2_caching_info *ci, struct ocfs2_path *path, u32 cpos) ocfs2_find_path() argument 1924 ocfs2_find_leaf(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *root_el, u32 cpos, struct buffer_head **leaf_bh) ocfs2_find_leaf() argument 2208 ocfs2_find_cpos_for_left_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos) ocfs2_find_cpos_for_left_leaf() argument 2321 ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) ocfs2_leftmost_rec_contains() argument 2368 u32 cpos; ocfs2_rotate_tree_right() local 2803 ocfs2_find_cpos_for_right_leaf(struct super_block *sb, struct ocfs2_path *path, u32 *cpos) ocfs2_find_cpos_for_right_leaf() argument 3020 u32 cpos; ocfs2_remove_rightmost_path() local 4076 u32 cpos = le32_to_cpu(split_rec->e_cpos); ocfs2_split_record() local 4242 u32 cpos; ocfs2_do_insert_extent() local 4527 u32 cpos = le32_to_cpu(insert_rec->e_cpos); ocfs2_figure_appending_type() local 4699 ocfs2_insert_extent(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u64 start_blk, u32 new_clusters, u8 flags, struct ocfs2_alloc_context *meta_ac) ocfs2_insert_extent() argument 4881 ocfs2_make_right_split_rec(struct super_block *sb, struct ocfs2_extent_rec *split_rec, u32 cpos, struct ocfs2_extent_rec *rec) ocfs2_make_right_split_rec() argument 4981 u32 cpos; ocfs2_split_and_insert() local 5148 ocfs2_change_extent_flag(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc, int new_flags, int clear_flags) ocfs2_change_extent_flag() argument 5236 ocfs2_mark_extent_written(struct inode *inode, struct ocfs2_extent_tree *et, handle_t *handle, u32 cpos, u32 len, u32 phys, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_mark_extent_written() argument 5340 ocfs2_truncate_rec(handle_t *handle, struct ocfs2_extent_tree *et, struct ocfs2_path *path, int index, struct ocfs2_cached_dealloc_ctxt *dealloc, u32 cpos, u32 len) ocfs2_truncate_rec() argument 5504 ocfs2_remove_extent(handle_t *handle, struct ocfs2_extent_tree *et, u32 cpos, u32 len, struct ocfs2_alloc_context *meta_ac, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_remove_extent() argument 5690 ocfs2_remove_btree_range(struct inode *inode, struct ocfs2_extent_tree *et, u32 cpos, u32 phys_cpos, u32 len, int flags, struct ocfs2_cached_dealloc_ctxt *dealloc, u64 refcount_loc, bool refcount_tree_locked) ocfs2_remove_btree_range() argument [all...] |
H A D | aops.c | 507 u32 cpos, in ocfs2_figure_cluster_boundaries() 518 cluster_start = cpos % cpp; in ocfs2_figure_cluster_boundaries() 542 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() 548 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end); in ocfs2_clear_page_regions() 942 struct page *page, u32 cpos, in ocfs2_prepare_page_for_write() 951 ocfs2_figure_cluster_boundaries(OCFS2_SB(inode->i_sb), cpos, in ocfs2_prepare_page_for_write() 1013 cpos, user_data_from, user_data_to); in ocfs2_prepare_page_for_write() 1026 u32 cpos, loff_t user_pos, in ocfs2_grab_pages_for_write() 1046 start = ocfs2_align_clusters_to_page_index(inode->i_sb, cpos); in ocfs2_grab_pages_for_write() 1120 struct ocfs2_write_ctxt *wc, u32 cpos, in ocfs2_write_cluster() 506 ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, u32 cpos, unsigned int *start, unsigned int *end) ocfs2_figure_cluster_boundaries() argument 541 ocfs2_clear_page_regions(struct page *page, struct ocfs2_super *osb, u32 cpos, unsigned from, unsigned to) ocfs2_clear_page_regions() argument 940 ocfs2_prepare_page_for_write(struct inode *inode, u64 *p_blkno, struct ocfs2_write_ctxt *wc, struct page *page, u32 cpos, loff_t user_pos, unsigned user_len, int new) ocfs2_prepare_page_for_write() argument 1024 ocfs2_grab_pages_for_write(struct address_space *mapping, struct ocfs2_write_ctxt *wc, u32 cpos, loff_t user_pos, unsigned user_len, int new, struct page *mmap_page) ocfs2_grab_pages_for_write() argument 1114 ocfs2_write_cluster(struct address_space *mapping, u32 *phys, unsigned int new, unsigned int clear_unwritten, unsigned int should_zero, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct ocfs2_write_ctxt *wc, u32 cpos, loff_t user_pos, unsigned user_len) ocfs2_write_cluster() argument [all...] |
H A D | file.c | 342 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() 1435 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1463 cpos = start >> OCFS2_SB(inode->i_sb)->s_clustersize_bits; in ocfs2_allocate_unwritten_extents() 1465 clusters -= cpos; in ocfs2_allocate_unwritten_extents() 1468 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, in ocfs2_allocate_unwritten_extents() 1490 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1498 cpos in ocfs2_allocate_unwritten_extents() 2131 u32 cpos, clusters, extent_len, phys_cpos; ocfs2_check_range_for_refcount() local 2242 u32 cpos; ocfs2_prepare_inode_for_write() local [all...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | lprops.c | 90 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] in adjust_lpt_heap() 173 int cpos, val1, val2; add_to_lpt_heap() local [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | lprops.c | 90 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] in adjust_lpt_heap() 173 int cpos, val1, val2; add_to_lpt_heap() local [all...] |
/kernel/linux/linux-5.10/fs/fat/ |
H A D | dir.c | 473 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, in __fat_readdir() 909 loff_t cpos; fat_dir_empty() local 934 loff_t cpos; fat_subdirs() local [all...] |
/kernel/linux/linux-6.6/fs/fat/ |
H A D | dir.c | 473 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, in __fat_readdir() 909 loff_t cpos; fat_dir_empty() local 934 loff_t cpos; fat_subdirs() local [all...] |
/kernel/linux/linux-5.10/fs/exfat/ |
H A D | dir.c | 66 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() 231 loff_t cpos, i_pos; in exfat_iterate() local 236 cpos = ctx->pos; in exfat_iterate() 241 cpos = 0; in exfat_iterate() 245 cpos = round_up(cpos, DENTRY_SIZE); in exfat_iterate() 254 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos > in exfat_iterate() [all...] |
/kernel/linux/linux-6.6/fs/exfat/ |
H A D | dir.c | 68 static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_entry *dir_entry) in exfat_readdir() argument 78 unsigned int dentry = EXFAT_B_TO_DEN(*cpos) & 0xFFFFFFFF; in exfat_readdir() 177 *cpos = EXFAT_DEN_TO_B(dentry + 1 + num_ext); in exfat_readdir() 193 *cpos = EXFAT_DEN_TO_B(dentry); in exfat_readdir() 235 loff_t cpos, i_pos; in exfat_iterate() local 240 cpos = ctx->pos; in exfat_iterate() 245 cpos = 0; in exfat_iterate() 249 cpos = round_up(cpos, DENTRY_SIZE); in exfat_iterate() 258 if (ei->flags == ALLOC_NO_FAT_CHAIN && cpos > in exfat_iterate() [all...] |