Home
last modified time | relevance | path

Searched refs:credits (Results 1 – 25 of 38) sorted by relevance

12

/linux-4.19.296/fs/ocfs2/
Djournal.h380 int credits = 0; in ocfs2_quota_trans_credits() local
383 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
385 credits += OCFS2_QWRITE_CREDITS; in ocfs2_quota_trans_credits()
386 return credits; in ocfs2_quota_trans_credits()
501 int credits = 1 + OCFS2_SUBALLOC_ALLOC; in ocfs2_calc_dxi_expand_credits() local
503 credits += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_dxi_expand_credits()
504 credits += ocfs2_quota_trans_credits(sb); in ocfs2_calc_dxi_expand_credits()
506 return credits; in ocfs2_calc_dxi_expand_credits()
600 int credits = 1 + tree_depth + 1; in ocfs2_calc_tree_trunc_credits() local
610 credits += 1 + tree_depth; in ocfs2_calc_tree_trunc_credits()
[all …]
Dmove_extents.c48 int credits; member
159 int *credits) in ocfs2_lock_meta_allocator_move_extents() argument
183 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
186 extra_blocks, clusters_to_move, *credits); in ocfs2_lock_meta_allocator_move_extents()
208 int ret, credits = 0, extra_blocks = 0, partial = context->partial; in ocfs2_defrag_extent() local
233 &credits, in ocfs2_defrag_extent()
244 extra_blocks, &credits); in ocfs2_defrag_extent()
282 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent()
576 int ret, credits = 0, extra_blocks = 0, goal_bit = 0; in ocfs2_move_extent() local
607 &credits, in ocfs2_move_extent()
[all …]
Drefcounttree.h53 int *credits,
70 int credits; /* credits it need for journal. */ member
79 int *meta_add, int *credits);
Dxattr.c309 int *credits);
714 int status = 0, credits; in ocfs2_xattr_extend_allocation() local
759 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_xattr_extend_allocation()
761 status = ocfs2_extend_trans(handle, credits); in ocfs2_xattr_extend_allocation()
3053 int clusters_add = 0, meta_add = 0, credits = 0; in ocfs2_calc_xattr_set_need() local
3070 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3074 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
3078 credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_calc_xattr_set_need()
3090 credits += OCFS2_INODE_UPDATE_CREDITS; in ocfs2_calc_xattr_set_need()
3106 credits += ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_calc_xattr_set_need()
[all …]
Drefcounttree.c774 int credits = OCFS2_REFCOUNT_TREE_REMOVE_CREDITS; in ocfs2_remove_refcount_tree() local
818 credits += OCFS2_SUBALLOC_FREE; in ocfs2_remove_refcount_tree()
821 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_refcount_tree()
2382 int *credits) in ocfs2_calc_refcount_meta_credits() argument
2416 *credits += 1; in ocfs2_calc_refcount_meta_credits()
2476 *credits += 1; in ocfs2_calc_refcount_meta_credits()
2483 *credits += ref_blocks; in ocfs2_calc_refcount_meta_credits()
2498 *credits += ocfs2_calc_extend_credits(sb, in ocfs2_calc_refcount_meta_credits()
2501 *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; in ocfs2_calc_refcount_meta_credits()
2509 *meta_add, *credits); in ocfs2_calc_refcount_meta_credits()
[all …]
Ddir.c2800 credits = ocfs2_inline_to_extents_credits(sb); in ocfs2_expand_inline_dir() local
2824 credits += ocfs2_add_dir_index_credits(sb); in ocfs2_expand_inline_dir()
2868 credits += OCFS2_SUBALLOC_ALLOC; in ocfs2_expand_inline_dir()
2870 handle = ocfs2_start_trans(osb, credits); in ocfs2_expand_inline_dir()
3182 int credits, num_free_extents, drop_alloc_sem = 0; in ocfs2_extend_dir() local
3236 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir()
3278 credits = ocfs2_calc_extend_credits(sb, el); in ocfs2_extend_dir()
3281 credits = OCFS2_SIMPLE_DIR_EXTEND_CREDITS; in ocfs2_extend_dir()
3286 credits++; /* For attaching the new dirent block to the in ocfs2_extend_dir()
3289 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_dir()
[all …]
Daops.c1677 int ret, cluster_of_pages, credits = OCFS2_INODE_UPDATE_CREDITS; in ocfs2_write_begin_nolock() local
1778 credits = ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_write_begin_nolock()
1797 handle = ocfs2_start_trans(osb, credits); in ocfs2_write_begin_nolock()
2328 int ret = 0, credits = 0; in ocfs2_dio_end_io_write() local
2376 credits = ocfs2_calc_extend_credits(inode->i_sb, &di->id2.i_list); in ocfs2_dio_end_io_write()
2378 handle = ocfs2_start_trans(osb, credits); in ocfs2_dio_end_io_write()
/linux-4.19.296/fs/cifs/
Dtransport.c454 int *credits) in wait_for_free_credits() argument
462 *credits -= 1; in wait_for_free_credits()
468 if (*credits <= 0) { in wait_for_free_credits()
472 has_credits(server, credits)); in wait_for_free_credits()
490 *credits -= 1; in wait_for_free_credits()
515 unsigned int *num, unsigned int *credits) in cifs_wait_mtu_credits() argument
518 *credits = 0; in cifs_wait_mtu_credits()
609 unsigned int credits = 0; in cifs_call_async() local
618 credits = 1; in cifs_call_async()
625 add_credits_and_wake_if(server, credits, optype); in cifs_call_async()
[all …]
Dfile.c2186 unsigned int i, nr_pages, found_pages, wsize, credits; in cifs_writepages() local
2190 &wsize, &credits); in cifs_writepages()
2203 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2209 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2219 add_credits_and_wake_if(server, credits, 0); in cifs_writepages()
2223 wdata->credits = credits; in cifs_writepages()
2229 add_credits_and_wake_if(server, wdata->credits, 0); in cifs_writepages()
2628 unsigned int wsize, credits; in cifs_write_from_iter() local
2631 &wsize, &credits); in cifs_write_from_iter()
2640 add_credits_and_wake_if(server, credits, 0); in cifs_write_from_iter()
[all …]
Dsmb2transport.c579 unsigned int credits = le16_to_cpu(shdr->CreditCharge); in smb2_mid_entry_alloc() local
590 temp->credits = credits > 0 ? credits : 1; in smb2_mid_entry_alloc()
Dcifsglob.h628 unsigned int credits; /* send no more requests at once */ member
714 has_credits(struct TCP_Server_Info *server, int *credits) in has_credits() argument
718 num = *credits; in has_credits()
1229 unsigned int credits; member
1255 unsigned int credits; member
1424 __u16 credits; /* number of credits consumed by this mid */ member
Dsmb2ops.c41 server->credits += server->echo_credits + server->oplock_credits; in change_conf()
43 switch (server->credits) { in change_conf()
65 server->credits -= server->echo_credits + server->oplock_credits; in change_conf()
66 return server->credits + server->echo_credits + server->oplock_credits; in change_conf()
92 if (server->credits > 1) { in smb2_add_credits()
93 server->credits--; in smb2_add_credits()
125 server->credits = val; in smb2_set_credits()
138 return &server->credits; in smb2_get_credits_field()
152 unsigned int *num, unsigned int *credits) in smb2_wait_mtu_credits() argument
159 if (server->credits <= 0) { in smb2_wait_mtu_credits()
[all …]
Dsmb2pdu.c108 if (server->credits >= server->max_credits) in smb2_hdr_assemble()
113 server->credits, 2)); in smb2_hdr_assemble()
3258 if (rc == -EAGAIN && rdata->credits) { in smb2_async_readv()
3260 rdata->credits = 0; in smb2_async_readv()
3277 if (rdata->credits) { in smb2_async_readv()
3283 server->credits += rdata->credits - in smb2_async_readv()
3287 rdata->credits = le16_to_cpu(shdr->CreditCharge); in smb2_async_readv()
3476 if (rc == -EAGAIN && wdata->credits) { in smb2_async_writev()
3478 wdata->credits = 0; in smb2_async_writev()
3571 if (wdata->credits) { in smb2_async_writev()
[all …]
Dsmb1ops.c124 server->credits += add; in cifs_add_credits()
134 server->credits = val; in cifs_set_credits()
142 return &server->credits; in cifs_get_credits_field()
/linux-4.19.296/fs/ext4/
Dxattr.c921 int credits; in __ext4_xattr_set_credits() local
937 credits = 7; in __ext4_xattr_set_credits()
940 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb); in __ext4_xattr_set_credits()
947 credits += ext4_writepage_trans_blocks(inode) + 1; in __ext4_xattr_set_credits()
951 return credits; in __ext4_xattr_set_credits()
954 credits += 4; in __ext4_xattr_set_credits()
963 credits += blocks * 2; in __ext4_xattr_set_credits()
966 credits += blocks; in __ext4_xattr_set_credits()
972 credits += 4; in __ext4_xattr_set_credits()
983 credits += blocks * 2; in __ext4_xattr_set_credits()
[all …]
Dacl.c229 int error, credits, retries = 0; in ext4_set_acl() local
239 &credits); in ext4_set_acl()
243 handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits); in ext4_set_acl()
Dextents.c2646 int depth = ext_depth(inode), credits; in ext4_ext_rm_leaf() local
2732 credits = 7 + 2*(ex_ee_len/EXT4_BLOCKS_PER_GROUP(inode->i_sb)); in ext4_ext_rm_leaf()
2735 credits += (ext_depth(inode)) + 1; in ext4_ext_rm_leaf()
2737 credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(inode->i_sb); in ext4_ext_rm_leaf()
2739 err = ext4_ext_truncate_extend_restart(handle, inode, credits); in ext4_ext_rm_leaf()
4691 unsigned int credits; in ext4_alloc_file_blocks() local
4708 credits = ext4_chunk_trans_blocks(inode, len); in ext4_alloc_file_blocks()
4717 credits = ext4_chunk_trans_blocks(inode, len); in ext4_alloc_file_blocks()
4722 credits); in ext4_alloc_file_blocks()
4775 int credits; in ext4_zero_range() local
[all …]
Dnamei.c2554 int err, credits, retries = 0; in ext4_create() local
2560 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_create()
2564 NULL, EXT4_HT_DIR, credits); in ext4_create()
2587 int err, credits, retries = 0; in ext4_mknod() local
2593 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_mknod()
2597 NULL, EXT4_HT_DIR, credits); in ext4_mknod()
2730 int err, credits, retries = 0; in ext4_mkdir() local
2739 credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + in ext4_mkdir()
2744 0, NULL, EXT4_HT_DIR, credits); in ext4_mkdir()
3184 int credits; in ext4_symlink() local
[all …]
Dxattr.h181 bool is_create, int *credits);
/linux-4.19.296/include/trace/events/
Drpcrdma.h669 unsigned int credits
672 TP_ARGS(task, rep, req, credits),
680 __field(unsigned int, credits)
689 __entry->credits = credits;
694 __entry->credits, __entry->rep, __entry->req
1011 __field(u32, credits)
1018 __entry->credits = be32_to_cpup(p++);
1024 __entry->xid, __entry->vers, __entry->credits,
1057 __field(u32, credits)
1063 __entry->credits = be32_to_cpup(p++);
[all …]
/linux-4.19.296/include/uapi/rdma/hfi/
Dhfi1_ioctl.h89 __u16 credits; /* number of PIO credits for this context */ member
/linux-4.19.296/include/net/bluetooth/
Dl2cap.h466 __le16 credits; member
473 __le16 credits; member
479 __le16 credits; member
Drfcomm.h130 u8 credits; member
/linux-4.19.296/drivers/thunderbolt/
Dswitch.c563 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits() argument
565 if (credits == 0) in tb_port_add_nfc_credits()
569 credits, in tb_port_add_nfc_credits()
571 port->config.nfc_credits + credits); in tb_port_add_nfc_credits()
572 port->config.nfc_credits += credits; in tb_port_add_nfc_credits()
/linux-4.19.296/include/net/nfc/
Dnci.h390 __u8 credits; member

12