/fs/cifs/ |
D | transport.c | 517 int *credits; in wait_for_free_credits() local 531 credits = server->ops->get_credits_field(server, optype); in wait_for_free_credits() 533 if (*credits <= 0 && optype == CIFS_ECHO_OP) in wait_for_free_credits() 542 *credits -= 1; in wait_for_free_credits() 544 scredits = *credits; in wait_for_free_credits() 557 if (*credits < num_credits) { in wait_for_free_credits() 558 scredits = *credits; in wait_for_free_credits() 563 has_credits(server, credits, num_credits), t); in wait_for_free_credits() 567 scredits = *credits; in wait_for_free_credits() 602 *credits <= MAX_COMPOUND) { in wait_for_free_credits() [all …]
|
D | file.c | 2374 rc = adjust_credits(wdata->server, &wdata->credits, wdata->bytes); in wdata_send_pages() 2426 struct cifs_credits *credits = &credits_on_stack; in cifs_writepages() local 2439 &wsize, credits); in cifs_writepages() 2452 add_credits_and_wake_if(server, credits, 0); in cifs_writepages() 2458 add_credits_and_wake_if(server, credits, 0); in cifs_writepages() 2468 add_credits_and_wake_if(server, credits, 0); in cifs_writepages() 2472 wdata->credits = credits_on_stack; in cifs_writepages() 2492 add_credits_and_wake_if(server, &wdata->credits, 0); in cifs_writepages() 2905 struct cifs_credits credits; in cifs_resend_wdata() local 2926 &wsize, &credits); in cifs_resend_wdata() [all …]
|
D | cifsglob.h | 226 const struct cifs_credits *credits, 467 struct cifs_credits *credits, 600 unsigned int credits; /* send no more requests at once */ member 731 has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) in has_credits() argument 735 num = *credits; in has_credits() 741 add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, in add_credits() argument 744 server->ops->add_credits(server, credits, optype); in add_credits() 749 const struct cifs_credits *credits, const int optype) in add_credits_and_wake_if() argument 751 if (credits->value) { in add_credits_and_wake_if() 752 server->ops->add_credits(server, credits, optype); in add_credits_and_wake_if() [all …]
|
D | smb2ops.c | 33 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 35 switch (server->credits) { in change_conf() 57 server->credits -= server->echo_credits + server->oplock_credits; in change_conf() 58 return server->credits + server->echo_credits + server->oplock_credits; in change_conf() 63 const struct cifs_credits *credits, const int optype) in smb2_add_credits() argument 67 unsigned int add = credits->value; in smb2_add_credits() 68 unsigned int instance = credits->instance; in smb2_add_credits() 100 if (server->credits > 1) { in smb2_add_credits() 101 server->credits--; in smb2_add_credits() 158 server->credits = val; in smb2_set_credits() [all …]
|
D | trace.h | 892 int credits, 895 TP_ARGS(currmid, conn_id, hostname, credits, credits_to_add, in_flight), 900 __field(int, credits) 908 __entry->credits = credits; 917 __entry->credits, 927 int credits, \ 930 TP_ARGS(currmid, conn_id, hostname, credits, credits_to_add, in_flight))
|
D | smb2pdu.c | 97 if (server->credits >= server->max_credits) in smb2_hdr_assemble() 102 server->credits, 10)); in smb2_hdr_assemble() 3722 struct cifs_credits credits = { .value = 0, .instance = 0 }; in smb2_echo_callback() local 3726 credits.value = le16_to_cpu(rsp->sync_hdr.CreditRequest); in smb2_echo_callback() 3727 credits.instance = server->reconnect_instance; in smb2_echo_callback() 3731 add_credits(server, &credits, CIFS_ECHO_OP); in smb2_echo_callback() 4026 struct cifs_credits credits = { .value = 0, .instance = 0 }; in smb2_readv_callback() local 4048 credits.value = le16_to_cpu(shdr->CreditRequest); in smb2_readv_callback() 4049 credits.instance = server->reconnect_instance; in smb2_readv_callback() 4074 credits.value = le16_to_cpu(shdr->CreditRequest); in smb2_readv_callback() [all …]
|
D | smb2transport.c | 708 unsigned int credits = le16_to_cpu(shdr->CreditCharge); in smb2_mid_entry_alloc() local 719 temp->credits = credits > 0 ? credits : 1; in smb2_mid_entry_alloc()
|
D | smb1ops.c | 110 const struct cifs_credits *credits, const int optype) in cifs_add_credits() argument 113 server->credits += credits->value; in cifs_add_credits() 123 server->credits = val; in cifs_set_credits() 131 return &server->credits; in cifs_get_credits_field()
|
/fs/ocfs2/ |
D | journal.h | 364 int credits = 0; in ocfs2_quota_trans_credits() local 367 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 369 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits() 370 return credits; in ocfs2_quota_trans_credits() 485 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local 487 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits() 488 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits() 490 return credits; in ocfs2_calc_dxi_expand_credits()
|
D | move_extents.c | 38 int credits; member 149 int *credits) in ocfs2_lock_meta_allocator_move_extents() argument 173 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents() 176 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_meta_allocator_move_extents() 198 int ret, credits = 0, extra_blocks = 0, partial = context->partial; in ocfs2_defrag_extent() local 223 &credits, in ocfs2_defrag_extent() 234 extra_blocks, &credits); in ocfs2_defrag_extent() 272 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent() 566 int ret, credits = 0, extra_blocks = 0, goal_bit = 0; in ocfs2_move_extent() local 597 &credits, in ocfs2_move_extent() [all …]
|
D | xattr.c | 299 int *credits); 704 int status = 0, credits; in ocfs2_xattr_extend_allocation() local 749 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation() 751 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation() 3043 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local 3060 credits += new_clusters * in ocfs2_calc_xattr_set_need() 3064 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need() 3068 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need() 3080 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need() 3096 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need() [all …]
|
D | refcounttree.h | 43 int *credits, 60 int credits; /* credits it need for journal. */ member 69 int *meta_add, int *credits);
|
D | refcounttree.c | 766 int credits = OCFS2_REFCOUNT_TREE_REMOVE_CREDITS; in ocfs2_remove_refcount_tree() local 810 credits += OCFS2_SUBALLOC_FREE; in ocfs2_remove_refcount_tree() 813 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_refcount_tree() 2374 int *credits) in ocfs2_calc_refcount_meta_credits() argument 2408 *credits += 1; in ocfs2_calc_refcount_meta_credits() 2468 *credits += 1; in ocfs2_calc_refcount_meta_credits() 2475 *credits += ref_blocks; in ocfs2_calc_refcount_meta_credits() 2490 *credits += ocfs2_calc_extend_credits(sb, in ocfs2_calc_refcount_meta_credits() 2493 *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_calc_refcount_meta_credits() 2501 *meta_add, *credits); in ocfs2_calc_refcount_meta_credits() [all …]
|
D | dir.c | 2772 credits = ocfs2_inline_to_extents_credits(sb); in ocfs2_expand_inline_dir() local 2796 credits += ocfs2_add_dir_index_credits(sb); in ocfs2_expand_inline_dir() 2840 credits += OCFS2_SUBALLOC_ALLOC; in ocfs2_expand_inline_dir() 2842 handle = ocfs2_start_trans(osb, credits); in ocfs2_expand_inline_dir() 3154 int credits, num_free_extents, drop_alloc_sem = 0; in ocfs2_extend_dir() local 3208 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir() 3250 credits = ocfs2_calc_extend_credits(sb, el); in ocfs2_extend_dir() 3253 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir() 3258 credits++; /* For attaching the new dirent block to the in ocfs2_extend_dir() 3261 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_dir() [all …]
|
D | aops.c | 1652 int ret, cluster_of_pages, credits = OCFS2_INODE_UPDATE_CREDITS; in ocfs2_write_begin_nolock() local 1753 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_write_begin_nolock() 1772 handle = ocfs2_start_trans(osb, credits); in ocfs2_write_begin_nolock() 2309 int ret = 0, credits = 0; in ocfs2_dio_end_io_write() local 2357 credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list); in ocfs2_dio_end_io_write() 2359 handle = ocfs2_start_trans(osb, credits); in ocfs2_dio_end_io_write()
|
D | ocfs2_trace.h | 1741 TP_PROTO(const char *name, int meta, int clusters, int credits), 1742 TP_ARGS(name, meta, clusters, credits), 1747 __field(int, credits) 1753 __entry->credits = credits; 1756 __entry->clusters, __entry->credits)
|
/fs/ext4/ |
D | verity.c | 106 const int credits = 2; /* superblock and inode for ext4_orphan_add() */ in ext4_begin_enable_verity() local 148 handle = ext4_journal_start(inode, EXT4_HT_INODE, credits); in ext4_begin_enable_verity() 196 const int credits = 2; /* superblock and inode for ext4_orphan_del() */ in ext4_end_enable_verity() local 229 handle = ext4_journal_start(inode, EXT4_HT_INODE, credits); in ext4_end_enable_verity()
|
D | xattr.c | 907 int credits; in __ext4_xattr_set_credits() local 923 credits = 7; in __ext4_xattr_set_credits() 926 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb); in __ext4_xattr_set_credits() 933 credits += ext4_writepage_trans_blocks(inode) + 1; in __ext4_xattr_set_credits() 937 return credits; in __ext4_xattr_set_credits() 940 credits += 4; in __ext4_xattr_set_credits() 949 credits += blocks * 2; in __ext4_xattr_set_credits() 952 credits += blocks; in __ext4_xattr_set_credits() 958 credits += 4; in __ext4_xattr_set_credits() 969 credits += blocks * 2; in __ext4_xattr_set_credits() [all …]
|
D | acl.c | 232 int error, credits, retries = 0; in ext4_set_acl() local 242 &credits); in ext4_set_acl() 246 handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); in ext4_set_acl()
|
D | ext4_jbd2.h | 399 static inline int ext4_journal_ensure_credits(handle_t *handle, int credits, in ext4_journal_ensure_credits() argument 402 return ext4_journal_ensure_credits_fn(handle, credits, credits, in ext4_journal_ensure_credits()
|
D | extents.c | 2571 int depth = ext_depth(inode), credits, revoke_credits; in ext4_ext_rm_leaf() local 2657 credits = 7 + 2*(ex_ee_len/EXT4_BLOCKS_PER_GROUP(inode->i_sb)); in ext4_ext_rm_leaf() 2660 credits += (ext_depth(inode)) + 1; in ext4_ext_rm_leaf() 2662 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); in ext4_ext_rm_leaf() 2673 err = ext4_datasem_ensure_credits(handle, inode, credits, in ext4_ext_rm_leaf() 2674 credits, revoke_credits); in ext4_ext_rm_leaf() 4467 unsigned int credits; in ext4_alloc_file_blocks() local 4484 credits = ext4_chunk_trans_blocks(inode, len); in ext4_alloc_file_blocks() 4493 credits = ext4_chunk_trans_blocks(inode, len); in ext4_alloc_file_blocks() 4498 credits); in ext4_alloc_file_blocks() [all …]
|
D | namei.c | 2825 int err, credits, retries = 0; in ext4_create() local 2831 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_create() 2835 0, NULL, EXT4_HT_DIR, credits); in ext4_create() 2860 int err, credits, retries = 0; in ext4_mknod() local 2866 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_mknod() 2870 0, NULL, EXT4_HT_DIR, credits); in ext4_mknod() 3005 int err, err2 = 0, credits, retries = 0; in ext4_mkdir() local 3014 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_mkdir() 3019 0, NULL, EXT4_HT_DIR, credits); in ext4_mkdir() 3347 int credits; in ext4_symlink() local [all …]
|
D | xattr.h | 182 bool is_create, int *credits);
|
D | resize.c | 442 static int ext4_resize_ensure_credits_batch(handle_t *handle, int credits) in ext4_resize_ensure_credits_batch() argument 444 return ext4_journal_ensure_credits_fn(handle, credits, in ext4_resize_ensure_credits_batch() 1879 int credits = 1; in ext4_convert_meta_bg() local 1903 credits += 3; /* block bitmap, bg descriptor, resize inode */ in ext4_convert_meta_bg() 1906 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credits); in ext4_convert_meta_bg()
|
/fs/ksmbd/ |
D | transport_rdma.c | 805 int receive_credits, credits = 0; in smb_direct_post_recv_credits() local 837 credits++; in smb_direct_post_recv_credits() 842 t->recv_credits += credits; in smb_direct_post_recv_credits() 843 t->count_avail_recvmsg -= credits; in smb_direct_post_recv_credits() 847 t->new_recv_credits += credits; in smb_direct_post_recv_credits() 850 if (credits) in smb_direct_post_recv_credits() 1006 static int wait_for_rw_credits(struct smb_direct_transport *t, int credits) in wait_for_rw_credits() argument 1008 return wait_for_credits(t, &t->wait_rw_credits, &t->rw_credits, credits); in wait_for_rw_credits()
|