Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 31) sorted by relevance

12

/fs/ocfs2/
Dlocalalloc.c51 static u32 ocfs2_local_alloc_count_bits(struct ocfs2_dinode *alloc);
54 struct ocfs2_dinode *alloc,
58 static void ocfs2_clear_local_alloc(struct ocfs2_dinode *alloc);
62 struct ocfs2_dinode *alloc,
287 struct ocfs2_dinode *alloc = NULL; in ocfs2_load_local_alloc() local
321 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_load_local_alloc()
322 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_load_local_alloc()
324 if (!(le32_to_cpu(alloc->i_flags) & in ocfs2_load_local_alloc()
341 num_used = ocfs2_local_alloc_count_bits(alloc); in ocfs2_load_local_alloc()
346 || alloc->id1.bitmap1.i_used in ocfs2_load_local_alloc()
[all …]
Dlocalalloc.h41 struct ocfs2_dinode *alloc);
DMakefile11 alloc.o \
Daops.c1271 loff_t pos, unsigned len, int alloc) in ocfs2_set_target_boundaries() argument
1278 if (alloc == 0) in ocfs2_set_target_boundaries()
2083 ocfs2_dio_alloc_write_ctx(struct buffer_head *bh, int *alloc) in ocfs2_dio_alloc_write_ctx() argument
2098 *alloc = 1; in ocfs2_dio_alloc_write_ctx()
Ddir.c2797 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2818 alloc = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_expand_inline_dir()
2855 BUG_ON(alloc > 2); in ocfs2_expand_inline_dir()
2857 ret = ocfs2_reserve_clusters(osb, alloc + dx_alloc, &data_ac); in ocfs2_expand_inline_dir()
2867 if (alloc == 2) in ocfs2_expand_inline_dir()
2878 ocfs2_clusters_to_bytes(osb->sb, alloc + dx_alloc)); in ocfs2_expand_inline_dir()
3046 if (alloc > len) { in ocfs2_expand_inline_dir()
/fs/xfs/libxfs/
Dxfs_alloc_btree.c151 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
154 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec()
157 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
208 ASSERT(rec->alloc.ar_startblock != 0); in xfs_allocbt_init_key_from_rec()
210 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
211 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
221 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock); in xfs_allocbt_init_rec_from_cur()
222 rec->alloc.ar_blockcount = cpu_to_be32(cur->bc_rec.a.ar_blockcount); in xfs_allocbt_init_rec_from_cur()
244 xfs_alloc_key_t *kp = &key->alloc; in xfs_allocbt_key_diff()
355 return be32_to_cpu(k1->alloc.ar_startblock) < in xfs_allocbt_keys_inorder()
[all …]
Dxfs_ialloc.h34 uint64_t alloc; /* inode phys. allocation bitmap for member
Dxfs_btree.h48 xfs_alloc_key_t alloc; member
58 struct xfs_alloc_rec alloc; member
Dxfs_trans_resv.c157 int alloc, in xfs_calc_finobt_res() argument
166 if (alloc) in xfs_calc_finobt_res()
Dxfs_ialloc.c597 int *alloc) in xfs_ialloc_ag_alloc() argument
778 *alloc = 0; in xfs_ialloc_ag_alloc()
885 *alloc = 1; in xfs_ialloc_ag_alloc()
1957 xic->alloc = xfs_inobt_irec_to_allocmask(&rec); in xfs_difree_inobt()
Dxfs_alloc.c194 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
195 rec.alloc.ar_blockcount = cpu_to_be32(len); in xfs_alloc_update()
214 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
215 *len = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_get_rec()
/fs/nfs/
Dnfs3acl.c255 struct posix_acl *alloc = NULL, *dfacl = NULL; in nfs3_set_acl() local
261 alloc = dfacl = get_acl(inode, ACL_TYPE_DEFAULT); in nfs3_set_acl()
262 if (IS_ERR(alloc)) in nfs3_set_acl()
268 alloc = acl = get_acl(inode, ACL_TYPE_ACCESS); in nfs3_set_acl()
269 if (IS_ERR(alloc)) in nfs3_set_acl()
276 alloc = acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfs3_set_acl()
277 if (IS_ERR(alloc)) in nfs3_set_acl()
281 posix_acl_release(alloc); in nfs3_set_acl()
285 return PTR_ERR(alloc); in nfs3_set_acl()
Ddns_resolve.c368 .alloc = nfs_dns_ent_alloc,
/fs/hpfs/
DMakefile7 hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \
/fs/nilfs2/
DMakefile5 ifile.o alloc.o gcinode.o ioctl.o sysfs.o
Dsegment.c1289 int err, alloc = 0; in nilfs_segctor_begin_construction() local
1308 alloc++; in nilfs_segctor_begin_construction()
1319 alloc++; in nilfs_segctor_begin_construction()
1327 if (alloc) { in nilfs_segctor_begin_construction()
/fs/nfsd/
Dnfs4acl.c457 int alloc; in init_state() local
466 alloc = sizeof(struct posix_ace_state_array) in init_state()
468 state->users = kzalloc(alloc, GFP_KERNEL); in init_state()
471 state->groups = kzalloc(alloc, GFP_KERNEL); in init_state()
Dnfs4idmap.c193 .alloc = ent_alloc,
356 .alloc = ent_alloc,
Dexport.c245 .alloc = expkey_alloc,
761 .alloc = svc_export_alloc,
/fs/exofs/
Dore_raid.c52 bool alloc; member
127 sp2d->_1p_stripes[i].alloc = true; in _sp2d_alloc()
183 if (sp2d->_1p_stripes[i].alloc) in _sp2d_free()
/fs/
Ddax.c965 bool alloc = false; in dax_pmd_fault() local
1010 alloc = true; in dax_pmd_fault()
1030 if (alloc) { in dax_pmd_fault()
Dbinfmt_elf.c1575 alloc: in fill_files_note()
1599 goto alloc; in fill_files_note()
/fs/jfs/
Djfs_dmap.c83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
2508 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level) in dbAdjCtl() argument
2554 if (alloc) { in dbAdjCtl()
2592 dbAdjCtl(bmp, blkno, dcp->stree[ROOT], alloc, in dbAdjCtl()
2598 if (alloc) { in dbAdjCtl()
/fs/dlm/
Dlowcomms.c198 static struct connection *__nodeid2con(int nodeid, gfp_t alloc) in __nodeid2con() argument
204 if (con || !alloc) in __nodeid2con()
207 con = kmem_cache_zalloc(con_cache, alloc); in __nodeid2con()
/fs/ceph/
Dcaps.c162 int alloc = 0; in ceph_reserve_caps() local
185 alloc++; in ceph_reserve_caps()
188 if (have + alloc != need) in ceph_reserve_caps()
190 ctx, need, have + alloc); in ceph_reserve_caps()
193 mdsc->caps_total_count += alloc; in ceph_reserve_caps()
194 mdsc->caps_reserve_count += alloc; in ceph_reserve_caps()

12