Home
last modified time | relevance | path

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

/fs/dlm/
Dmember.c64 struct rcom_slot *ro0, struct dlm_slot *array, in log_slots() argument
74 if (array) { in log_slots()
76 if (!array[i].nodeid) in log_slots()
80 array[i].slot, array[i].nodeid); in log_slots()
170 struct dlm_slot *array; in dlm_slots_assign() local
221 array = kzalloc(array_size * sizeof(struct dlm_slot), GFP_NOFS); in dlm_slots_assign()
222 if (!array) in dlm_slots_assign()
235 kfree(array); in dlm_slots_assign()
239 array[memb->slot - 1].nodeid = memb->nodeid; in dlm_slots_assign()
240 array[memb->slot - 1].slot = memb->slot; in dlm_slots_assign()
[all …]
/fs/nfs/
Ddir.c151 struct nfs_cache_array_entry array[0]; member
175 struct nfs_cache_array *array; in nfs_readdir_init_array() local
177 array = kmap_atomic(page); in nfs_readdir_init_array()
178 memset(array, 0, sizeof(struct nfs_cache_array)); in nfs_readdir_init_array()
179 array->eof_index = -1; in nfs_readdir_init_array()
180 kunmap_atomic(array); in nfs_readdir_init_array()
210 struct nfs_cache_array *array; in nfs_readdir_clear_array() local
213 array = kmap_atomic(page); in nfs_readdir_clear_array()
214 for (i = 0; i < array->size; i++) in nfs_readdir_clear_array()
215 kfree(array->array[i].string.name); in nfs_readdir_clear_array()
[all …]
/fs/befs/
Ddatastream.c250 befs_block_run *array = data->direct; in befs_find_brun_direct() local
264 sum += array[i].len, i++) { in befs_find_brun_direct()
265 if (blockno >= sum && blockno < sum + (array[i].len)) { in befs_find_brun_direct()
267 run->allocation_group = array[i].allocation_group; in befs_find_brun_direct()
268 run->start = array[i].start + offset; in befs_find_brun_direct()
269 run->len = array[i].len - offset; in befs_find_brun_direct()
315 befs_disk_block_run *array; in befs_find_brun_indirect() local
336 array = (befs_disk_block_run *) indirblock->b_data; in befs_find_brun_indirect()
339 int len = fs16_to_cpu(sb, array[j].len); in befs_find_brun_indirect()
344 fs32_to_cpu(sb, array[j].allocation_group); in befs_find_brun_indirect()
[all …]
/fs/debugfs/
Dfile.c592 void *array; member
597 u32 *array, int array_size) in u32_format_array() argument
605 len = snprintf(buf, bufsize, "%u%c", *array++, term); in u32_format_array()
632 u32_format_array(buf, size, data->array, data->elements); in u32_array_open()
682 u32 *array, u32 elements) in debugfs_create_u32_array() argument
689 data->array = array; in debugfs_create_u32_array()
/fs/
Dsplice.c967 struct bio_vec *array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write() local
971 if (unlikely(!array)) in iter_file_splice_write()
987 kfree(array); in iter_file_splice_write()
989 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
991 if (!array) { in iter_file_splice_write()
1016 array[n].bv_page = buf->page; in iter_file_splice_write()
1017 array[n].bv_len = this_len; in iter_file_splice_write()
1018 array[n].bv_offset = buf->offset; in iter_file_splice_write()
1022 iov_iter_bvec(&from, ITER_BVEC | WRITE, array, n, in iter_file_splice_write()
1053 kfree(array); in iter_file_splice_write()
/fs/ocfs2/
Duptodate.c538 sector_t *array = ci->ci_cache.ci_array; in ocfs2_remove_metadata_array() local
555 memmove(&array[index], &array[index + 1], bytes); in ocfs2_remove_metadata_array()
/fs/logfs/
Dreadwrite.c616 __be64 *array, int page_is_empty) in initialize_block_counters() argument
635 ptr = be64_to_cpu(array[i]); in initialize_block_counters()
668 __be64 *array; in alloc_indirect_block() local
676 array = kmap_atomic(page); in alloc_indirect_block()
677 initialize_block_counters(page, block, array, page_is_empty); in alloc_indirect_block()
678 kunmap_atomic(array); in alloc_indirect_block()
684 __be64 *array; in block_set_pointer() local
688 array = kmap_atomic(page); in block_set_pointer()
689 oldptr = be64_to_cpu(array[index]); in block_set_pointer()
690 array[index] = cpu_to_be64(ptr); in block_set_pointer()
[all …]
Dlogfs.h577 __be64 *array, int page_is_empty);
/fs/proc/
DMakefile10 proc-y += inode.o root.o base.o generic.o array.o \
/fs/f2fs/
Dsegment.c3664 struct curseg_info *array; in build_curseg() local
3667 array = f2fs_kzalloc(sbi, sizeof(*array) * NR_CURSEG_TYPE, GFP_KERNEL); in build_curseg()
3668 if (!array) in build_curseg()
3671 SM_I(sbi)->curseg_array = array; in build_curseg()
3674 mutex_init(&array[i].curseg_mutex); in build_curseg()
3675 array[i].sum_blk = f2fs_kzalloc(sbi, PAGE_SIZE, GFP_KERNEL); in build_curseg()
3676 if (!array[i].sum_blk) in build_curseg()
3678 init_rwsem(&array[i].journal_rwsem); in build_curseg()
3679 array[i].journal = f2fs_kzalloc(sbi, in build_curseg()
3681 if (!array[i].journal) in build_curseg()
[all …]
/fs/hpfs/
Dmap.c78 cpds = le32_to_cpu(cp->array[0].code_page_data); in hpfs_load_code_page()
79 cpi = le16_to_cpu(cp->array[0].index); in hpfs_load_code_page()
Dhpfs.h218 } array[31]; /* unknown length */ member