/fs/nfsd/ |
D | nfs4idmap.c | 62 struct ent { struct 78 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 79 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 91 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 98 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 110 idtoname_hash(struct ent *ent) in idtoname_hash() argument 114 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 115 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 118 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 128 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
/fs/proc/ |
D | generic.c | 360 struct proc_dir_entry *ent = NULL; in __proc_create() local 381 ent = kzalloc(sizeof(struct proc_dir_entry) + qstr.len + 1, GFP_KERNEL); in __proc_create() 382 if (!ent) in __proc_create() 385 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 386 ent->namelen = qstr.len; in __proc_create() 387 ent->mode = mode; in __proc_create() 388 ent->nlink = nlink; in __proc_create() 389 ent->subdir = RB_ROOT; in __proc_create() 390 atomic_set(&ent->count, 1); in __proc_create() 391 spin_lock_init(&ent->pde_unload_lock); in __proc_create() [all …]
|
D | kcore.c | 146 struct kcore_list *ent; in kcore_update_ram() local 149 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_update_ram() 150 if (!ent) in kcore_update_ram() 152 ent->addr = (unsigned long)__va(0); in kcore_update_ram() 153 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_update_ram() 154 ent->type = KCORE_RAM; in kcore_update_ram() 155 list_add(&ent->list, &head); in kcore_update_ram() 165 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument 167 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() 168 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() [all …]
|
D | proc_tty.c | 146 struct proc_dir_entry *ent; in proc_tty_register_driver() local 152 ent = proc_create_data(driver->driver_name, 0, proc_tty_driver, in proc_tty_register_driver() 154 driver->proc_entry = ent; in proc_tty_register_driver() 162 struct proc_dir_entry *ent; in proc_tty_unregister_driver() local 164 ent = driver->proc_entry; in proc_tty_unregister_driver() 165 if (!ent) in proc_tty_unregister_driver() 168 remove_proc_entry(ent->name, proc_tty_driver); in proc_tty_unregister_driver()
|
/fs/nilfs2/ |
D | recovery.c | 405 struct nilfs_segment_entry *ent = kmalloc(sizeof(*ent), GFP_NOFS); in nilfs_segment_list_add() local 407 if (unlikely(!ent)) in nilfs_segment_list_add() 410 ent->segnum = segnum; in nilfs_segment_list_add() 411 INIT_LIST_HEAD(&ent->list); in nilfs_segment_list_add() 412 list_add_tail(&ent->list, head); in nilfs_segment_list_add() 419 struct nilfs_segment_entry *ent; in nilfs_dispose_segment_list() local 421 ent = list_first_entry(head, struct nilfs_segment_entry, list); in nilfs_dispose_segment_list() 422 list_del(&ent->list); in nilfs_dispose_segment_list() 423 kfree(ent); in nilfs_dispose_segment_list() 432 struct nilfs_segment_entry *ent, *n; in nilfs_prepare_segment_for_recovery() local [all …]
|
/fs/ext4/ |
D | namei.c | 3307 static int ext4_rename_dir_prepare(handle_t *handle, struct ext4_renament *ent) in ext4_rename_dir_prepare() argument 3311 ent->dir_bh = ext4_get_first_dir_block(handle, ent->inode, in ext4_rename_dir_prepare() 3312 &retval, &ent->parent_de, in ext4_rename_dir_prepare() 3313 &ent->dir_inlined); in ext4_rename_dir_prepare() 3314 if (!ent->dir_bh) in ext4_rename_dir_prepare() 3316 if (le32_to_cpu(ent->parent_de->inode) != ent->dir->i_ino) in ext4_rename_dir_prepare() 3318 BUFFER_TRACE(ent->dir_bh, "get_write_access"); in ext4_rename_dir_prepare() 3319 return ext4_journal_get_write_access(handle, ent->dir_bh); in ext4_rename_dir_prepare() 3322 static int ext4_rename_dir_finish(handle_t *handle, struct ext4_renament *ent, in ext4_rename_dir_finish() argument 3327 ent->parent_de->inode = cpu_to_le32(dir_ino); in ext4_rename_dir_finish() [all …]
|
/fs/hostfs/ |
D | hostfs_user.c | 112 struct dirent *ent; in read_dir() local 114 ent = readdir(dir); in read_dir() 115 if (ent == NULL) in read_dir() 117 *len_out = strlen(ent->d_name); in read_dir() 118 *ino_out = ent->d_ino; in read_dir() 119 *type_out = ent->d_type; in read_dir() 120 *pos_out = ent->d_off; in read_dir() 121 return ent->d_name; in read_dir()
|
/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 618 int ent; /* entry index */ in xfs_dir2_block_lookup() local 627 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) in xfs_dir2_block_lookup() 639 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup() 768 int ent; /* block leaf entry index */ in xfs_dir2_block_removename() local 782 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_removename() 795 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename() 811 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename() 812 xfs_dir2_block_log_leaf(tp, bp, ent, ent); in xfs_dir2_block_removename() 848 int ent; /* leaf entry index */ in xfs_dir2_block_replace() local 857 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_replace() [all …]
|
/fs/omfs/ |
D | file.c | 191 static sector_t find_block(struct inode *inode, struct omfs_extent_entry *ent, in find_block() argument 198 be64_to_cpu(ent->e_blocks)); in find_block() 208 be64_to_cpu(ent->e_cluster)) + in find_block() 212 ent++; in find_block()
|
/fs/nfs/ |
D | dir.c | 797 struct nfs_cache_array_entry *ent; in nfs_do_filldir() local 799 ent = &array->array[i]; in nfs_do_filldir() 800 if (!dir_emit(desc->ctx, ent->string.name, ent->string.len, in nfs_do_filldir() 801 nfs_compat_user_ino64(ent->ino), ent->d_type)) { in nfs_do_filldir()
|
/fs/ |
D | binfmt_elf_fdpic.c | 602 struct { unsigned long _id, _val; } __user *ent; \ in create_elf_fdpic_tables() 604 ent = (void __user *) csp; \ in create_elf_fdpic_tables() 605 __put_user((id), &ent[nr]._id); \ in create_elf_fdpic_tables() 606 __put_user((val), &ent[nr]._val); \ in create_elf_fdpic_tables()
|