Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 13 of 13) sorted by relevance

/fs/autofs/
Ddirhash.c18 struct autofs_dir_ent *ent) in autofs_init_usage() argument
20 list_add_tail(&ent->exp, &dh->expiry_head); in autofs_init_usage()
21 ent->last_usage = jiffies; in autofs_init_usage()
24 static void autofs_delete_usage(struct autofs_dir_ent *ent) in autofs_delete_usage() argument
26 list_del(&ent->exp); in autofs_delete_usage()
30 struct autofs_dir_ent *ent) in autofs_update_usage() argument
32 autofs_delete_usage(ent); /* Unlink from current position */ in autofs_update_usage()
33 autofs_init_usage(dh,ent); /* Relink at queue tail */ in autofs_update_usage()
41 struct autofs_dir_ent *ent; in autofs_expire() local
49 ent = list_entry(dh->expiry_head.next, struct autofs_dir_ent, exp); in autofs_expire()
[all …]
Droot.c45 struct autofs_dir_ent *ent = NULL; in autofs_root_readdir() local
70 while (onr = nr, ent = autofs_hash_enum(dirhash,&nr,ent)) { in autofs_root_readdir()
71 if (!ent->dentry || d_mountpoint(ent->dentry)) { in autofs_root_readdir()
72 if (filldir(dirent,ent->name,ent->len,onr,ent->ino,DT_UNKNOWN) < 0) in autofs_root_readdir()
88 struct autofs_dir_ent *ent; in try_to_fill_dentry() local
91 if (!(ent = autofs_hash_lookup(&sbi->dirhash, &dentry->d_name))) { in try_to_fill_dentry()
109 } while (!(ent = autofs_hash_lookup(&sbi->dirhash, &dentry->d_name))); in try_to_fill_dentry()
114 dentry->d_time = (unsigned long) ent; in try_to_fill_dentry()
117 inode = autofs_iget(sb, ent->ino); in try_to_fill_dentry()
134 autofs_update_usage(&sbi->dirhash,ent); in try_to_fill_dentry()
[all …]
/fs/nfsd/
Dnfs4idmap.c68 struct ent { struct
85 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument
86 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
98 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
105 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc()
119 idtoname_hash(struct ent *ent) in idtoname_hash() argument
123 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash()
124 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash()
127 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash()
137 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local
[all …]
/fs/proc/
Dproc_devtree.c59 struct proc_dir_entry *ent; in __proc_device_tree_add_prop() local
65 ent = create_proc_read_entry(name, in __proc_device_tree_add_prop()
69 if (ent == NULL) in __proc_device_tree_add_prop()
73 ent->size = 0; /* don't leak number of password chars */ in __proc_device_tree_add_prop()
75 ent->size = pp->length; in __proc_device_tree_add_prop()
77 return ent; in __proc_device_tree_add_prop()
96 struct proc_dir_entry *ent; in proc_device_tree_update_prop() local
98 for (ent = pde->subdir; ent != NULL; ent = ent->next) in proc_device_tree_update_prop()
99 if (ent->data == oldprop) in proc_device_tree_update_prop()
101 if (ent == NULL) { in proc_device_tree_update_prop()
[all …]
Dgeneric.c564 struct proc_dir_entry *ent = NULL; in __proc_create() local
580 ent = kmalloc(sizeof(struct proc_dir_entry) + len + 1, GFP_KERNEL); in __proc_create()
581 if (!ent) goto out; in __proc_create()
583 memset(ent, 0, sizeof(struct proc_dir_entry)); in __proc_create()
584 memcpy(((char *) ent) + sizeof(struct proc_dir_entry), fn, len + 1); in __proc_create()
585 ent->name = ((char *) ent) + sizeof(*ent); in __proc_create()
586 ent->namelen = len; in __proc_create()
587 ent->mode = mode; in __proc_create()
588 ent->nlink = nlink; in __proc_create()
589 atomic_set(&ent->count, 1); in __proc_create()
[all …]
Dproc_tty.c145 struct proc_dir_entry *ent; in proc_tty_register_driver() local
151 ent = create_proc_entry(driver->driver_name, 0, proc_tty_driver); in proc_tty_register_driver()
152 if (!ent) in proc_tty_register_driver()
154 ent->read_proc = driver->ops->read_proc; in proc_tty_register_driver()
155 ent->owner = driver->owner; in proc_tty_register_driver()
156 ent->data = driver; in proc_tty_register_driver()
158 driver->proc_entry = ent; in proc_tty_register_driver()
166 struct proc_dir_entry *ent; in proc_tty_unregister_driver() local
168 ent = driver->proc_entry; in proc_tty_unregister_driver()
169 if (!ent) in proc_tty_unregister_driver()
/fs/hostfs/
Dhostfs_user.c148 struct dirent *ent; in read_dir() local
151 ent = readdir(dir); in read_dir()
152 if (ent == NULL) in read_dir()
154 *len_out = strlen(ent->d_name); in read_dir()
155 *ino_out = ent->d_ino; in read_dir()
157 return ent->d_name; in read_dir()
Dhostfs_kern.c348 int hostfs_readdir(struct file *file, void *ent, filldir_t filldir) in hostfs_readdir() argument
364 error = (*filldir)(ent, name, len, file->f_pos, in hostfs_readdir()
/fs/
Daio.c1057 static int aio_read_evt(struct kioctx *ioctx, struct io_event *ent) in aio_read_evt() argument
1077 *ent = *evp; in aio_read_evt()
1139 struct io_event ent; in read_events() local
1146 memset(&ent, 0, sizeof(ent)); in read_events()
1150 ret = aio_read_evt(ctx, &ent); in read_events()
1155 ent.data, ent.obj, ent.res, ent.res2); in read_events()
1159 if (unlikely(copy_to_user(event, &ent, sizeof(ent)))) { in read_events()
1198 ret = aio_read_evt(ctx, &ent); in read_events()
1229 if (unlikely(copy_to_user(event, &ent, sizeof(ent)))) { in read_events()
Dbinfmt_elf_fdpic.c577 struct { unsigned long _id, _val; } __user *ent; \ in create_elf_fdpic_tables()
579 ent = (void __user *) csp; \ in create_elf_fdpic_tables()
580 __put_user((id), &ent[nr]._id); \ in create_elf_fdpic_tables()
581 __put_user((val), &ent[nr]._val); \ in create_elf_fdpic_tables()
/fs/xfs/
Dxfs_dir2_block.c594 int ent; /* entry index */ in xfs_dir2_block_lookup() local
603 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) in xfs_dir2_block_lookup()
615 xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
746 int ent; /* block leaf entry index */ in xfs_dir2_block_removename() local
760 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_removename()
773 ((char *)block + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
789 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename()
790 xfs_dir2_block_log_leaf(tp, bp, ent, ent); in xfs_dir2_block_removename()
827 int ent; /* leaf entry index */ in xfs_dir2_block_replace() local
836 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_replace()
[all …]
/fs/omfs/
Dfile.c208 static sector_t find_block(struct inode *inode, struct omfs_extent_entry *ent, in find_block() argument
215 be64_to_cpu(ent->e_blocks)); in find_block()
225 be64_to_cpu(ent->e_cluster)) + in find_block()
229 ent++; in find_block()
/fs/hppfs/
Dhppfs.c564 static int hppfs_readdir(struct file *file, void *ent, filldir_t filldir) in hppfs_readdir() argument
570 { .vfs_dirent = ent, in hppfs_readdir()