/fs/ocfs2/ |
D | journal.h | 370 int credits = 0; in ocfs2_quota_trans_credits() local 373 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 375 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 376 return credits; in ocfs2_quota_trans_credits() 486 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local 488 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits() 489 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits() 491 return credits; in ocfs2_calc_dxi_expand_credits() 586 int credits = 1 + tree_depth + 1; in ocfs2_calc_tree_trunc_credits() local 596 credits += 1 + tree_depth; in ocfs2_calc_tree_trunc_credits() [all …]
|
D | move_extents.c | 47 int credits; member 172 int *credits) in ocfs2_lock_allocators_move_extents() argument 203 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el, in ocfs2_lock_allocators_move_extents() 207 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_allocators_move_extents() 229 int ret, credits = 0, extra_blocks = 0, partial = context->partial; in ocfs2_defrag_extent() local 256 &credits, in ocfs2_defrag_extent() 267 extra_blocks, &credits); in ocfs2_defrag_extent() 290 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent() 645 int ret, credits = 0, extra_blocks = 0, goal_bit = 0; in ocfs2_move_extent() local 679 &credits, in ocfs2_move_extent() [all …]
|
D | xattr.c | 309 int *credits); 711 int status = 0, credits; in ocfs2_xattr_extend_allocation() local 756 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation() 759 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation() 3025 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local 3042 credits += new_clusters * in ocfs2_calc_xattr_set_need() 3046 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need() 3050 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need() 3063 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need() 3079 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need() [all …]
|
D | refcounttree.h | 53 int *credits, 70 int credits; /* credits it need for journal. */ member 79 int *meta_add, int *credits);
|
D | refcounttree.c | 771 int credits = OCFS2_REFCOUNT_TREE_REMOVE_CREDITS; in ocfs2_remove_refcount_tree() local 815 credits += OCFS2_SUBALLOC_FREE; in ocfs2_remove_refcount_tree() 818 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_refcount_tree() 2387 int *credits) in ocfs2_calc_refcount_meta_credits() argument 2421 *credits += 1; in ocfs2_calc_refcount_meta_credits() 2483 *credits += 1; in ocfs2_calc_refcount_meta_credits() 2490 *credits += ref_blocks; in ocfs2_calc_refcount_meta_credits() 2505 *credits += ocfs2_calc_extend_credits(sb, in ocfs2_calc_refcount_meta_credits() 2509 *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_calc_refcount_meta_credits() 2517 *meta_add, *credits); in ocfs2_calc_refcount_meta_credits() [all …]
|
D | dir.c | 2865 credits = ocfs2_inline_to_extents_credits(sb); in ocfs2_expand_inline_dir() local 2889 credits += ocfs2_add_dir_index_credits(sb); in ocfs2_expand_inline_dir() 2933 credits += OCFS2_SUBALLOC_ALLOC; in ocfs2_expand_inline_dir() 2935 handle = ocfs2_start_trans(osb, credits); in ocfs2_expand_inline_dir() 3245 int credits, num_free_extents, drop_alloc_sem = 0; in ocfs2_extend_dir() local 3299 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir() 3341 credits = ocfs2_calc_extend_credits(sb, el, 1); in ocfs2_extend_dir() 3344 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir() 3349 credits++; /* For attaching the new dirent block to the in ocfs2_extend_dir() 3352 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_dir() [all …]
|
D | file.c | 570 int credits; in __ocfs2_extend_allocation() local 606 credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list, in __ocfs2_extend_allocation() 608 handle = ocfs2_start_trans(osb, credits); in __ocfs2_extend_allocation() 675 credits = ocfs2_calc_extend_credits(osb->sb, in __ocfs2_extend_allocation() 678 status = ocfs2_extend_trans(handle, credits); in __ocfs2_extend_allocation()
|
D | ocfs2_trace.h | 1744 TP_PROTO(const char *name, int meta, int clusters, int credits), 1745 TP_ARGS(name, meta, clusters, credits), 1750 __field(int, credits) 1756 __entry->credits = credits; 1759 __entry->clusters, __entry->credits)
|
D | aops.c | 1710 int ret, cluster_of_pages, credits = OCFS2_INODE_UPDATE_CREDITS; in ocfs2_write_begin_nolock() local 1808 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_write_begin_nolock() 1828 handle = ocfs2_start_trans(osb, credits); in ocfs2_write_begin_nolock()
|
D | alloc.c | 2284 int credits = (path->p_tree_depth - subtree_depth) * 2 + 1 + op_credits; in ocfs2_extend_rotate_transaction() local 2286 if (handle->h_buffer_credits < credits) in ocfs2_extend_rotate_transaction() 2288 credits - handle->h_buffer_credits); in ocfs2_extend_rotate_transaction() 5223 int ret, depth, credits; in ocfs2_split_tree() local 5254 credits = path->p_tree_depth + in ocfs2_split_tree() 5256 ret = ocfs2_extend_trans(handle, credits); in ocfs2_split_tree() 5642 int ret, credits = 0, extra_blocks = 0; in ocfs2_remove_btree_range() local 5665 &credits, in ocfs2_remove_btree_range() 5691 ocfs2_remove_extent_credits(osb->sb) + credits); in ocfs2_remove_btree_range()
|
D | namei.c | 1585 int status, l, credits; in ocfs2_symlink() local 1618 credits = ocfs2_calc_symlink_credits(sb); in ocfs2_symlink() 1694 handle = ocfs2_start_trans(osb, credits + xattr_credits); in ocfs2_symlink()
|
D | suballoc.c | 698 int status, credits; in ocfs2_block_group_alloc() local 719 credits = ocfs2_calc_group_alloc_credits(osb->sb, in ocfs2_block_group_alloc() 721 handle = ocfs2_start_trans(osb, credits); in ocfs2_block_group_alloc()
|
/fs/cifs/ |
D | transport.c | 258 int *credits) in wait_for_free_credits() argument 266 *credits -= 1; in wait_for_free_credits() 272 if (*credits <= 0) { in wait_for_free_credits() 276 has_credits(server, credits)); in wait_for_free_credits() 294 *credits -= 1; in wait_for_free_credits()
|
D | cifsglob.h | 261 int credits; /* send no more requests at once */ member 333 return &server->credits; in get_credits_field() 337 has_credits(struct TCP_Server_Info *server, int *credits) in has_credits() argument 341 num = *credits; in has_credits()
|
D | misc.c | 708 server->credits += add; in cifs_add_credits() 718 server->credits = val; in cifs_set_credits()
|
D | connect.c | 863 if (server->credits <= 0) in clean_demultiplex_info() 864 server->credits = 1; in clean_demultiplex_info() 2202 tcp_ses->credits = 1; in cifs_get_tcp_session()
|
/fs/ext4/ |
D | extents.c | 2331 int depth = ext_depth(inode), credits; in ext4_ext_rm_leaf() local 2402 credits = 7 + 2*(ex_ee_len/EXT4_BLOCKS_PER_GROUP(inode->i_sb)); in ext4_ext_rm_leaf() 2405 credits += (ext_depth(inode)) + 1; in ext4_ext_rm_leaf() 2407 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); in ext4_ext_rm_leaf() 2409 err = ext4_ext_truncate_extend_restart(handle, inode, credits); in ext4_ext_rm_leaf() 4346 unsigned int credits, blkbits = inode->i_blkbits; in ext4_fallocate() local 4373 credits = ext4_chunk_trans_blocks(inode, max_blocks); in ext4_fallocate() 4395 handle = ext4_journal_start(inode, credits); in ext4_fallocate() 4455 unsigned int credits, blkbits = inode->i_blkbits; in ext4_convert_unwritten_extents() local 4467 credits = ext4_chunk_trans_blocks(inode, max_blocks); in ext4_convert_unwritten_extents() [all …]
|
D | namei.c | 2246 int credits; in ext4_symlink() local 2261 credits = 4 + EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + in ext4_symlink() 2270 credits = EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_symlink() 2275 handle = ext4_journal_start(dir, credits); in ext4_symlink()
|
/fs/ext3/ |
D | namei.c | 2189 int credits; in ext3_symlink() local 2204 credits = 4 + EXT3_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + in ext3_symlink() 2213 credits = EXT3_DATA_TRANS_BLOCKS(dir->i_sb) + in ext3_symlink() 2218 handle = ext3_journal_start(dir, credits); in ext3_symlink()
|
/fs/reiserfs/ |
D | README | 37 fail to fairly credit me, or to remove my credits, without my
|