Home
last modified time | relevance | path

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

12

/fs/ocfs2/
Dlocalalloc.c37 static u32 ocfs2_local_alloc_count_bits(struct ocfs2_dinode *alloc);
40 struct ocfs2_dinode *alloc,
44 static void ocfs2_clear_local_alloc(struct ocfs2_dinode *alloc);
48 struct ocfs2_dinode *alloc,
273 struct ocfs2_dinode *alloc = NULL; in ocfs2_load_local_alloc() local
307 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_load_local_alloc()
308 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_load_local_alloc()
310 if (!(le32_to_cpu(alloc->i_flags) & in ocfs2_load_local_alloc()
327 num_used = ocfs2_local_alloc_count_bits(alloc); in ocfs2_load_local_alloc()
332 || alloc->id1.bitmap1.i_used in ocfs2_load_local_alloc()
[all …]
Dlocalalloc.h27 struct ocfs2_dinode *alloc);
DMakefile12 alloc.o \
Daops.c1273 loff_t pos, unsigned len, int alloc) in ocfs2_set_target_boundaries() argument
1280 if (alloc == 0) in ocfs2_set_target_boundaries()
2105 ocfs2_dio_alloc_write_ctx(struct buffer_head *bh, int *alloc) in ocfs2_dio_alloc_write_ctx() argument
2120 *alloc = 1; in ocfs2_dio_alloc_write_ctx()
Ddir.c2771 u32 alloc, dx_alloc, bit_off, len, num_dx_entries = 0; in ocfs2_expand_inline_dir() local
2792 alloc = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_expand_inline_dir()
2829 BUG_ON(alloc > 2); in ocfs2_expand_inline_dir()
2831 ret = ocfs2_reserve_clusters(osb, alloc + dx_alloc, &data_ac); in ocfs2_expand_inline_dir()
2841 if (alloc == 2) in ocfs2_expand_inline_dir()
2852 ocfs2_clusters_to_bytes(osb->sb, alloc + dx_alloc)); in ocfs2_expand_inline_dir()
3020 if (alloc > len) { in ocfs2_expand_inline_dir()
/fs/xfs/libxfs/
Dxfs_alloc_btree.c130 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
133 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec()
136 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec()
186 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
187 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
197 x = be32_to_cpu(rec->alloc.ar_startblock); in xfs_bnobt_init_high_key_from_rec()
198 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; in xfs_bnobt_init_high_key_from_rec()
199 key->alloc.ar_startblock = cpu_to_be32(x); in xfs_bnobt_init_high_key_from_rec()
200 key->alloc.ar_blockcount = 0; in xfs_bnobt_init_high_key_from_rec()
208 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_cntbt_init_high_key_from_rec()
[all …]
Dxfs_ialloc.h22 uint64_t alloc; /* inode phys. allocation bitmap for member
Dxfs_btree.h36 xfs_alloc_key_t alloc; member
46 struct xfs_alloc_rec alloc; member
Dxfs_trans_resv.c182 bool alloc) in xfs_calc_inode_chunk_res() argument
188 if (alloc) { in xfs_calc_inode_chunk_res()
Dxfs_alloc.c217 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
218 rec.alloc.ar_blockcount = cpu_to_be32(len); in xfs_alloc_update()
241 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
242 *len = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_get_rec()
3339 irec.ar_startblock = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_query_range_helper()
3340 irec.ar_blockcount = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_query_range_helper()
Dxfs_ialloc.c616 int *alloc) in xfs_ialloc_ag_alloc() argument
799 *alloc = 0; in xfs_ialloc_ag_alloc()
906 *alloc = 1; in xfs_ialloc_ag_alloc()
2003 xic->alloc = xfs_inobt_irec_to_allocmask(&rec); in xfs_difree_inobt()
/fs/nfs/
Dnfs3acl.c256 struct posix_acl *orig = acl, *dfacl = NULL, *alloc; in nfs3_set_acl() local
262 alloc = get_acl(inode, ACL_TYPE_DEFAULT); in nfs3_set_acl()
263 if (IS_ERR(alloc)) in nfs3_set_acl()
265 dfacl = alloc; in nfs3_set_acl()
269 alloc = get_acl(inode, ACL_TYPE_ACCESS); in nfs3_set_acl()
270 if (IS_ERR(alloc)) in nfs3_set_acl()
273 acl = alloc; in nfs3_set_acl()
279 alloc = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfs3_set_acl()
280 if (IS_ERR(alloc)) in nfs3_set_acl()
282 acl = alloc; in nfs3_set_acl()
[all …]
Ddns_resolve.c379 .alloc = nfs_dns_ent_alloc,
/fs/xfs/scrub/
Dalloc.c101 bno = be32_to_cpu(rec->alloc.ar_startblock); in xchk_allocbt_rec()
102 len = be32_to_cpu(rec->alloc.ar_blockcount); in xchk_allocbt_rec()
/fs/hpfs/
DMakefile8 hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \
/fs/nilfs2/
DMakefile6 ifile.o alloc.o gcinode.o ioctl.o sysfs.o
/fs/quota/
Dquota_v2.c344 bool alloc = false; in v2_write_dquot() local
353 alloc = true; in v2_write_dquot()
361 if (alloc) in v2_write_dquot()
/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.c201 .alloc = ent_alloc,
371 .alloc = ent_alloc,
/fs/kernfs/
Dinode.c33 static struct kernfs_iattrs *__kernfs_iattrs(struct kernfs_node *kn, int alloc) in __kernfs_iattrs() argument
40 if (kn->iattr || !alloc) in __kernfs_iattrs()
/fs/xfs/
DMakefile139 alloc.o \
/fs/btrfs/
Dblock-group.h265 u64 bytenr, u64 num_bytes, int alloc);
Dblock-group.c2871 u64 bytenr, u64 num_bytes, int alloc) in btrfs_update_block_group() argument
2884 if (alloc) in btrfs_update_block_group()
2905 if (!alloc && !btrfs_block_group_done(cache)) in btrfs_update_block_group()
2920 if (alloc) { in btrfs_update_block_group()
2962 if (!alloc && old_val == 0) { in btrfs_update_block_group()
/fs/dlm/
Dlowcomms.c176 static struct connection *nodeid2con(int nodeid, gfp_t alloc) in nodeid2con() argument
182 if (con || !alloc) in nodeid2con()
185 con = kzalloc(sizeof(*con), alloc); in nodeid2con()
/fs/jfs/
Djfs_dmap.c70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
2536 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level) in dbAdjCtl() argument
2582 if (alloc) { in dbAdjCtl()
2620 dbAdjCtl(bmp, blkno, dcp->stree[ROOT], alloc, in dbAdjCtl()
2626 if (alloc) { in dbAdjCtl()

12