Home
last modified time | relevance | path

Searched refs:ac (Results 1 – 12 of 12) sorted by relevance

/fs/ext4/
Dmballoc.c1623 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument
1626 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found()
1629 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found()
1630 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found()
1632 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()
1633 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
1634 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found()
1638 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
1640 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found()
1641 ac->ac_tail = ret & 0xffff; in ext4_mb_use_best_found()
[all …]
Dcrypto_fname.c210 int i = 0, bits = 0, ac = 0; in digest_encode() local
214 ac += (((unsigned char) src[i]) << bits); in digest_encode()
217 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
218 ac >>= 6; in digest_encode()
224 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
230 int i = 0, bits = 0, ac = 0; in digest_decode() local
238 ac += (p - lookup_table) << bits; in digest_decode()
241 *cp++ = ac & 0xff; in digest_decode()
242 ac >>= 8; in digest_decode()
247 if (ac) in digest_decode()
/fs/ocfs2/
Dsuballoc.c109 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac,
134 struct ocfs2_alloc_context **ac);
136 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument
138 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource()
141 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource()
147 ac->ac_inode = NULL; in ocfs2_free_ac_resource()
149 brelse(ac->ac_bh); in ocfs2_free_ac_resource()
150 ac->ac_bh = NULL; in ocfs2_free_ac_resource()
151 ac->ac_resv = NULL; in ocfs2_free_ac_resource()
152 if (ac->ac_find_loc_priv) { in ocfs2_free_ac_resource()
[all …]
Dsuballoc.h66 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac);
67 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument
69 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left()
79 struct ocfs2_alloc_context **ac);
82 struct ocfs2_alloc_context **ac);
84 struct ocfs2_alloc_context **ac);
87 struct ocfs2_alloc_context **ac);
106 struct ocfs2_alloc_context *ac,
115 struct ocfs2_alloc_context *ac,
120 struct ocfs2_alloc_context *ac,
[all …]
Dlocalalloc.c67 struct ocfs2_alloc_context **ac,
73 struct ocfs2_alloc_context *ac);
629 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument
636 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
706 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits()
708 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits()
709 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits()
711 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits()
720 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits()
730 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument
[all …]
Dlocalalloc.h49 struct ocfs2_alloc_context *ac);
53 struct ocfs2_alloc_context *ac,
60 struct ocfs2_alloc_context *ac,
Dalloc.c5621 struct ocfs2_alloc_context **ac, in ocfs2_reserve_blocks_for_rec_trunc() argument
5628 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc()
5642 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, ac); in ocfs2_reserve_blocks_for_rec_trunc()
5652 if (*ac) { in ocfs2_reserve_blocks_for_rec_trunc()
5653 ocfs2_free_alloc_context(*ac); in ocfs2_reserve_blocks_for_rec_trunc()
5654 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc()
/fs/crypto/
Dfname.c148 int i = 0, bits = 0, ac = 0; in digest_encode() local
152 ac += (((unsigned char) src[i]) << bits); in digest_encode()
155 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
156 ac >>= 6; in digest_encode()
162 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
168 int i = 0, bits = 0, ac = 0; in digest_decode() local
176 ac += (p - lookup_table) << bits; in digest_decode()
179 *cp++ = ac & 0xff; in digest_decode()
180 ac >>= 8; in digest_decode()
185 if (ac) in digest_decode()
/fs/xfs/
Dxfs_itable.c362 struct xfs_bulkstat_agichunk ac; in xfs_bulkstat() local
378 ac.ac_ubuffer = &ubuffer; in xfs_bulkstat()
379 ac.ac_ubleft = ubcount * statstruct_size; /* bytes */; in xfs_bulkstat()
380 ac.ac_ubelem = 0; in xfs_bulkstat()
487 irbp < irbufend && ac.ac_ubleft >= statstruct_size; in xfs_bulkstat()
490 formatter, statstruct_size, &ac, in xfs_bulkstat()
502 if (ac.ac_ubleft < statstruct_size || error) in xfs_bulkstat()
514 *ubcountp = ac.ac_ubelem; in xfs_bulkstat()
523 if (ac.ac_ubelem) in xfs_bulkstat()
/fs/btrfs/
Dtransaction.c1529 struct btrfs_async_commit *ac = in do_async_commit() local
1536 if (ac->newtrans->type & __TRANS_FREEZABLE) in do_async_commit()
1538 &ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1], in do_async_commit()
1541 current->journal_info = ac->newtrans; in do_async_commit()
1543 btrfs_commit_transaction(ac->newtrans, ac->root); in do_async_commit()
1544 kfree(ac); in do_async_commit()
1551 struct btrfs_async_commit *ac; in btrfs_commit_transaction_async() local
1554 ac = kmalloc(sizeof(*ac), GFP_NOFS); in btrfs_commit_transaction_async()
1555 if (!ac) in btrfs_commit_transaction_async()
1558 INIT_WORK(&ac->work, do_async_commit); in btrfs_commit_transaction_async()
[all …]
/fs/ceph/
Ddebugfs.c165 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show() local
172 seq_printf(s, "global_id %llu\n", ac->global_id); in mds_sessions_show()
Dmds_client.c3682 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer() local
3686 ceph_auth_destroy_authorizer(ac, auth->authorizer); in get_authorizer()
3690 int ret = ceph_auth_create_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer()
3695 int ret = ceph_auth_update_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer()
3700 *proto = ac->protocol; in get_authorizer()
3710 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply() local
3712 return ceph_auth_verify_authorizer_reply(ac, s->s_auth.authorizer, len); in verify_authorizer_reply()
3719 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer() local
3721 ceph_auth_invalidate_authorizer(ac, CEPH_ENTITY_TYPE_MDS); in invalidate_authorizer()