/fs/ext4/ |
D | mballoc.c | 353 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac); 1707 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument 1710 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found() 1713 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found() 1714 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found() 1716 ac->ac_b_ex.fe_len = min(ac->ac_b_ex.fe_len, ac->ac_g_ex.fe_len); in ext4_mb_use_best_found() 1717 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found() 1718 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found() 1722 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found() 1724 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found() [all …]
|
/fs/ocfs2/ |
D | suballoc.c | 93 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, 118 struct ocfs2_alloc_context **ac); 120 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument 122 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource() 125 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource() 131 ac->ac_inode = NULL; in ocfs2_free_ac_resource() 133 brelse(ac->ac_bh); in ocfs2_free_ac_resource() 134 ac->ac_bh = NULL; in ocfs2_free_ac_resource() 135 ac->ac_resv = NULL; in ocfs2_free_ac_resource() 136 kfree(ac->ac_find_loc_priv); in ocfs2_free_ac_resource() [all …]
|
D | suballoc.h | 52 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac); 53 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument 55 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left() 65 struct ocfs2_alloc_context **ac); 68 struct ocfs2_alloc_context **ac); 70 struct ocfs2_alloc_context **ac); 73 struct ocfs2_alloc_context **ac); 92 struct ocfs2_alloc_context *ac, 101 struct ocfs2_alloc_context *ac, 106 struct ocfs2_alloc_context *ac, [all …]
|
D | localalloc.c | 53 struct ocfs2_alloc_context **ac, 59 struct ocfs2_alloc_context *ac); 618 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument 625 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits() 693 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits() 695 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits() 696 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits() 698 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits() 707 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits() 717 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument [all …]
|
D | localalloc.h | 35 struct ocfs2_alloc_context *ac); 39 struct ocfs2_alloc_context *ac, 46 struct ocfs2_alloc_context *ac,
|
D | alloc.c | 5653 struct ocfs2_alloc_context **ac, in ocfs2_reserve_blocks_for_rec_trunc() argument 5660 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc() 5674 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, ac); in ocfs2_reserve_blocks_for_rec_trunc() 5683 if (*ac) { in ocfs2_reserve_blocks_for_rec_trunc() 5684 ocfs2_free_alloc_context(*ac); in ocfs2_reserve_blocks_for_rec_trunc() 5685 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc()
|
/fs/afs/ |
D | vl_rotate.c | 24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation() 96 int error = vc->ac.error, i; in afs_select_vlserver() 100 vc->ac.tried, vc->ac.index, in afs_select_vlserver() 101 error, vc->ac.abort_code); in afs_select_vlserver() 120 _leave(" = f [okay/local %d]", vc->ac.error); in afs_select_vlserver() 127 switch (vc->ac.abort_code) { in afs_select_vlserver() 139 vc->error = afs_abort_to_error(vc->ac.abort_code); in afs_select_vlserver() 168 afs_end_cursor(&vc->ac); in afs_select_vlserver() 221 ASSERTCMP(vc->ac.alist, ==, NULL); in afs_select_vlserver() 233 memset(&vc->ac, 0, sizeof(vc->ac)); in afs_select_vlserver() [all …]
|
D | rotate.c | 116 int error = op->ac.error, i; in afs_select_fileserver() 120 op->ac.tried, op->ac.index, in afs_select_fileserver() 121 error, op->ac.abort_code); in afs_select_fileserver() 147 switch (op->ac.abort_code) { in afs_select_fileserver() 192 op->error = afs_abort_to_error(op->ac.abort_code); in afs_select_fileserver() 197 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver() 221 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver() 276 op->error = afs_abort_to_error(op->ac.abort_code); in afs_select_fileserver() 303 afs_end_cursor(&op->ac); in afs_select_fileserver() 364 ASSERTCMP(op->ac.alist, ==, NULL); in afs_select_fileserver() [all …]
|
D | addr_list.c | 354 bool afs_iterate_addresses(struct afs_addr_cursor *ac) in afs_iterate_addresses() argument 359 if (!ac->alist) in afs_iterate_addresses() 362 set = ac->alist->responded; in afs_iterate_addresses() 363 failed = ac->alist->failed; in afs_iterate_addresses() 364 _enter("%lx-%lx-%lx,%d", set, failed, ac->tried, ac->index); in afs_iterate_addresses() 366 ac->nr_iterations++; in afs_iterate_addresses() 368 set &= ~(failed | ac->tried); in afs_iterate_addresses() 373 index = READ_ONCE(ac->alist->preferred); in afs_iterate_addresses() 380 ac->index = index; in afs_iterate_addresses() 381 set_bit(index, &ac->tried); in afs_iterate_addresses() [all …]
|
D | fs_probe.c | 76 struct afs_addr_cursor *ac) in afs_fs_probe_not_done() argument 78 struct afs_addr_list *alist = ac->alist; in afs_fs_probe_not_done() 79 unsigned int index = ac->index; in afs_fs_probe_not_done() 192 struct afs_addr_cursor ac = { in afs_fs_probe_fileserver() local 199 ac.alist = rcu_dereference_protected(server->addresses, in afs_fs_probe_fileserver() 201 afs_get_addrlist(ac.alist); in afs_fs_probe_fileserver() 205 atomic_set(&server->probe_outstanding, all ? ac.alist->nr_addrs : 1); in afs_fs_probe_fileserver() 209 ac.index = ac.alist->preferred; in afs_fs_probe_fileserver() 210 if (ac.index < 0 || ac.index >= ac.alist->nr_addrs) in afs_fs_probe_fileserver() 214 for (ac.index = 0; ac.index < ac.alist->nr_addrs; ac.index++) in afs_fs_probe_fileserver() [all …]
|
D | vl_probe.c | 149 struct afs_addr_cursor ac = { in afs_do_probe_vlserver() local 158 ac.alist = rcu_dereference_protected(server->addresses, in afs_do_probe_vlserver() 162 atomic_set(&server->probe_outstanding, ac.alist->nr_addrs); in afs_do_probe_vlserver() 166 for (ac.index = 0; ac.index < ac.alist->nr_addrs; ac.index++) { in afs_do_probe_vlserver() 167 call = afs_vl_get_capabilities(net, &ac, key, server, in afs_do_probe_vlserver() 173 afs_prioritise_error(_e, PTR_ERR(call), ac.abort_code); in afs_do_probe_vlserver()
|
D | rxrpc.c | 360 void afs_make_call(struct afs_addr_cursor *ac, struct afs_call *call, gfp_t gfp) in afs_make_call() argument 362 struct sockaddr_rxrpc *srx = &ac->alist->addrs[ac->index]; in afs_make_call() 378 call->addr_ix = ac->index; in afs_make_call() 379 call->alist = afs_get_addrlist(ac->alist); in afs_make_call() 474 ac->abort_code = call->abort_code; in afs_make_call() 475 ac->responded = true; in afs_make_call() 497 ac->error = ret; in afs_make_call() 605 struct afs_addr_cursor *ac) in afs_wait_for_call_to_complete() argument 659 ac->abort_code = call->abort_code; in afs_wait_for_call_to_complete() 660 ac->error = call->error; in afs_wait_for_call_to_complete() [all …]
|
D | vlclient.c | 168 afs_make_call(&vc->ac, call, GFP_KERNEL); in afs_vl_get_entry_by_name_u() 169 return (struct afs_vldb_entry *)afs_wait_for_call_to_complete(call, &vc->ac); in afs_vl_get_entry_by_name_u() 307 afs_make_call(&vc->ac, call, GFP_KERNEL); in afs_vl_get_addrs_u() 308 return (struct afs_addr_list *)afs_wait_for_call_to_complete(call, &vc->ac); in afs_vl_get_addrs_u() 381 struct afs_addr_cursor *ac, in afs_vl_get_capabilities() argument 408 afs_make_call(ac, call, GFP_KERNEL); in afs_vl_get_capabilities() 645 afs_make_call(&vc->ac, call, GFP_KERNEL); in afs_yfsvl_get_endpoints() 646 return (struct afs_addr_list *)afs_wait_for_call_to_complete(call, &vc->ac); in afs_yfsvl_get_endpoints() 756 afs_make_call(&vc->ac, call, GFP_KERNEL); in afs_yfsvl_get_cell_name() 757 return (char *)afs_wait_for_call_to_complete(call, &vc->ac); in afs_yfsvl_get_cell_name()
|
D | fs_operation.c | 44 op->ac.error = SHRT_MAX; in afs_alloc_operation() 171 op->error = afs_abort_to_error(op->ac.abort_code); in afs_end_vnode_operation() 189 op->ac.error = -ENOTSUPP; in afs_wait_for_operation() 192 op->error = afs_wait_for_call_to_complete(op->call, &op->ac); in afs_wait_for_operation() 244 afs_end_cursor(&op->ac); in afs_put_operation()
|
D | server.c | 454 struct afs_addr_cursor ac = { in afs_give_up_callbacks() local 460 afs_fs_give_up_all_callbacks(net, server, &ac, NULL); in afs_give_up_callbacks()
|
D | fsclient.c | 1648 struct afs_addr_cursor *ac, in afs_fs_give_up_all_callbacks() argument 1667 afs_make_call(ac, call, GFP_NOFS); in afs_fs_give_up_all_callbacks() 1668 return afs_wait_for_call_to_complete(call, ac); in afs_fs_give_up_all_callbacks() 1735 struct afs_addr_cursor *ac, struct key *key) in afs_fs_get_capabilities() argument 1757 afs_make_call(ac, call, GFP_NOFS); in afs_fs_get_capabilities()
|
D | internal.h | 720 struct afs_addr_cursor ac; member 833 struct afs_addr_cursor ac; member 1269 afs_make_call(&op->ac, call, gfp); in afs_make_op_call()
|
D | vl_alias.c | 288 vc.ac.error = -EOPNOTSUPP; in afs_vl_get_cell_name()
|
D | dir.c | 662 op->ac.abort_code = abort_code; in afs_do_lookup_success() 1224 switch (op->ac.abort_code) { in afs_check_for_remote_deletion()
|
/fs/crypto/ |
D | fname.c | 203 u32 ac = 0; in fscrypt_base64url_encode() local 209 ac = (ac << 8) | src[i]; in fscrypt_base64url_encode() 213 *cp++ = base64url_table[(ac >> bits) & 0x3f]; in fscrypt_base64url_encode() 217 *cp++ = base64url_table[(ac << (6 - bits)) & 0x3f]; in fscrypt_base64url_encode() 238 u32 ac = 0; in fscrypt_base64url_decode() local 248 ac = (ac << 6) | (p - base64url_table); in fscrypt_base64url_decode() 252 *bp++ = (u8)(ac >> bits); in fscrypt_base64url_decode() 255 if (ac & ((1 << bits) - 1)) in fscrypt_base64url_decode()
|
/fs/btrfs/ |
D | transaction.c | 1880 struct btrfs_async_commit *ac = in do_async_commit() local 1887 if (ac->newtrans->type & __TRANS_FREEZABLE) in do_async_commit() 1888 __sb_writers_acquired(ac->newtrans->fs_info->sb, SB_FREEZE_FS); in do_async_commit() 1890 current->journal_info = ac->newtrans; in do_async_commit() 1892 btrfs_commit_transaction(ac->newtrans); in do_async_commit() 1893 kfree(ac); in do_async_commit() 1900 struct btrfs_async_commit *ac; in btrfs_commit_transaction_async() local 1903 ac = kmalloc(sizeof(*ac), GFP_NOFS); in btrfs_commit_transaction_async() 1904 if (!ac) in btrfs_commit_transaction_async() 1907 INIT_WORK(&ac->work, do_async_commit); in btrfs_commit_transaction_async() [all …]
|
/fs/ceph/ |
D | debugfs.c | 275 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show() local 282 seq_printf(s, "global_id %llu\n", ac->global_id); in mds_sessions_show()
|
D | mds_client.c | 5170 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer() local 5178 int ret = ceph_auth_create_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer() 5183 int ret = ceph_auth_update_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer() 5188 *proto = ac->protocol; in get_authorizer() 5198 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in add_authorizer_challenge() local 5200 return ceph_auth_add_authorizer_challenge(ac, s->s_auth.authorizer, in add_authorizer_challenge() 5208 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply() local 5210 return ceph_auth_verify_authorizer_reply(ac, s->s_auth.authorizer); in verify_authorizer_reply() 5217 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer() local 5219 ceph_auth_invalidate_authorizer(ac, CEPH_ENTITY_TYPE_MDS); in invalidate_authorizer()
|