Home
last modified time | relevance | path

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

/fs/ext4/
Dmballoc.c1641 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument
1644 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found()
1647 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found()
1648 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found()
1650 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()
1651 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
1652 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found()
1656 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
1658 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found()
1659 ac->ac_tail = ret & 0xffff; in ext4_mb_use_best_found()
[all …]
/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 kfree(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);
627 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument
634 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
703 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits()
705 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits()
706 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits()
708 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits()
717 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits()
727 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.c5661 struct ocfs2_alloc_context **ac, in ocfs2_reserve_blocks_for_rec_trunc() argument
5668 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc()
5682 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, ac); in ocfs2_reserve_blocks_for_rec_trunc()
5692 if (*ac) { in ocfs2_reserve_blocks_for_rec_trunc()
5693 ocfs2_free_alloc_context(*ac); in ocfs2_reserve_blocks_for_rec_trunc()
5694 *ac = NULL; in ocfs2_reserve_blocks_for_rec_trunc()
/fs/crypto/
Dfname.c151 int i = 0, bits = 0, ac = 0; in digest_encode() local
155 ac += (((unsigned char) src[i]) << bits); in digest_encode()
158 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
159 ac >>= 6; in digest_encode()
165 *cp++ = lookup_table[ac & 0x3f]; in digest_encode()
171 int i = 0, bits = 0, ac = 0; in digest_decode() local
179 ac += (p - lookup_table) << bits; in digest_decode()
182 *cp++ = ac & 0xff; in digest_decode()
183 ac >>= 8; in digest_decode()
188 if (ac) in digest_decode()
/fs/xfs/
Dxfs_itable.c367 struct xfs_bulkstat_agichunk ac; in xfs_bulkstat() local
383 ac.ac_ubuffer = &ubuffer; in xfs_bulkstat()
384 ac.ac_ubleft = ubcount * statstruct_size; /* bytes */; in xfs_bulkstat()
385 ac.ac_ubelem = 0; in xfs_bulkstat()
496 irbp < irbufend && ac.ac_ubleft >= statstruct_size; in xfs_bulkstat()
499 formatter, statstruct_size, &ac, in xfs_bulkstat()
511 if (ac.ac_ubleft < statstruct_size || error) in xfs_bulkstat()
523 *ubcountp = ac.ac_ubelem; in xfs_bulkstat()
532 if (ac.ac_ubelem) in xfs_bulkstat()
/fs/btrfs/
Dtransaction.c1777 struct btrfs_async_commit *ac = in do_async_commit() local
1784 if (ac->newtrans->type & __TRANS_FREEZABLE) in do_async_commit()
1785 __sb_writers_acquired(ac->root->fs_info->sb, SB_FREEZE_FS); in do_async_commit()
1787 current->journal_info = ac->newtrans; in do_async_commit()
1789 btrfs_commit_transaction(ac->newtrans, ac->root); in do_async_commit()
1790 kfree(ac); in do_async_commit()
1797 struct btrfs_async_commit *ac; in btrfs_commit_transaction_async() local
1800 ac = kmalloc(sizeof(*ac), GFP_NOFS); in btrfs_commit_transaction_async()
1801 if (!ac) in btrfs_commit_transaction_async()
1804 INIT_WORK(&ac->work, do_async_commit); in btrfs_commit_transaction_async()
[all …]
/fs/ceph/
Ddebugfs.c163 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show() local
170 seq_printf(s, "global_id %llu\n", ac->global_id); in mds_sessions_show()
Dmds_client.c3963 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer() local
3971 int ret = ceph_auth_create_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer()
3976 int ret = ceph_auth_update_authorizer(ac, CEPH_ENTITY_TYPE_MDS, in get_authorizer()
3981 *proto = ac->protocol; in get_authorizer()
3991 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply() local
3993 return ceph_auth_verify_authorizer_reply(ac, s->s_auth.authorizer, len); in verify_authorizer_reply()
4000 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer() local
4002 ceph_auth_invalidate_authorizer(ac, CEPH_ENTITY_TYPE_MDS); in invalidate_authorizer()