/fs/nfsd/ |
D | nfs4idmap.c | 62 struct ent { struct 79 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 80 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 92 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 99 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 111 idtoname_hash(struct ent *ent) in idtoname_hash() argument 115 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 116 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 119 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 135 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
/fs/ocfs2/ |
D | filecheck.c | 207 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 210 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 218 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 219 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 223 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 226 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 227 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 228 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 230 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 233 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
/fs/proc/ |
D | generic.c | 397 struct proc_dir_entry *ent = NULL; in __proc_create() local 426 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 427 if (!ent) in __proc_create() 431 ent->name = ent->inline_name; in __proc_create() 433 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 434 if (!ent->name) { in __proc_create() 435 pde_free(ent); in __proc_create() 440 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 441 ent->namelen = qstr.len; in __proc_create() 442 ent->mode = mode; in __proc_create() [all …]
|
D | kcore.c | 128 struct kcore_list *ent; in kcore_ram_list() local 130 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_ram_list() 131 if (!ent) in kcore_ram_list() 133 ent->addr = (unsigned long)__va(0); in kcore_ram_list() 134 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_ram_list() 135 ent->type = KCORE_RAM; in kcore_ram_list() 136 list_add(&ent->list, head); in kcore_ram_list() 145 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument 147 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() 148 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info() [all …]
|
D | proc_tty.c | 135 struct proc_dir_entry *ent; in proc_tty_register_driver() local 141 ent = proc_create_single_data(driver->driver_name, 0, proc_tty_driver, in proc_tty_register_driver() 143 driver->proc_entry = ent; in proc_tty_register_driver() 151 struct proc_dir_entry *ent; in proc_tty_unregister_driver() local 153 ent = driver->proc_entry; in proc_tty_unregister_driver() 154 if (!ent) in proc_tty_unregister_driver() 157 remove_proc_entry(ent->name, proc_tty_driver); in proc_tty_unregister_driver()
|
/fs/ceph/ |
D | cache.c | 58 struct ceph_fscache_entry *ent; in ceph_fscache_register_fs() local 62 list_for_each_entry(ent, &ceph_fscache_list, list) { in ceph_fscache_register_fs() 63 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs() 65 if (ent->uniq_len != uniq_len) in ceph_fscache_register_fs() 67 if (uniq_len && memcmp(ent->uniquifier, fscache_uniq, uniq_len)) in ceph_fscache_register_fs() 76 ent = kzalloc(sizeof(*ent) + uniq_len, GFP_KERNEL); in ceph_fscache_register_fs() 77 if (!ent) { in ceph_fscache_register_fs() 82 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs() 84 memcpy(&ent->uniquifier, fscache_uniq, uniq_len); in ceph_fscache_register_fs() 85 ent->uniq_len = uniq_len; in ceph_fscache_register_fs() [all …]
|
/fs/xfs/scrub/ |
D | attr.c | 248 struct xfs_attr_leaf_entry *ent, in xchk_xattr_entry() argument 261 if (ent->pad2 != 0) in xchk_xattr_entry() 265 if (be32_to_cpu(ent->hashval) < *last_hashval) in xchk_xattr_entry() 267 *last_hashval = be32_to_cpu(ent->hashval); in xchk_xattr_entry() 269 nameidx = be16_to_cpu(ent->nameidx); in xchk_xattr_entry() 277 if (ent->flags & XFS_ATTR_LOCAL) { in xchk_xattr_entry() 312 struct xfs_attr_leaf_entry *ent; in xchk_xattr_block() local 371 for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { in xchk_xattr_block() 373 off = (char *)ent - (char *)leaf; in xchk_xattr_block() 382 ent, i, &usedbytes, &last_hashval); in xchk_xattr_block() [all …]
|
D | dir.c | 210 struct xfs_dir2_leaf_entry *ent; in xchk_dir_rec() local 228 ent = hdr.ents + blk->index; in xchk_dir_rec() 231 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec() 236 ptr = be32_to_cpu(ent->address); in xchk_dir_rec() 292 hash = be32_to_cpu(ent->hashval); in xchk_dir_rec()
|
/fs/nilfs2/ |
D | recovery.c | 393 struct nilfs_segment_entry *ent = kmalloc(sizeof(*ent), GFP_NOFS); in nilfs_segment_list_add() local 395 if (unlikely(!ent)) in nilfs_segment_list_add() 398 ent->segnum = segnum; in nilfs_segment_list_add() 399 INIT_LIST_HEAD(&ent->list); in nilfs_segment_list_add() 400 list_add_tail(&ent->list, head); in nilfs_segment_list_add() 407 struct nilfs_segment_entry *ent; in nilfs_dispose_segment_list() local 409 ent = list_first_entry(head, struct nilfs_segment_entry, list); in nilfs_dispose_segment_list() 410 list_del(&ent->list); in nilfs_dispose_segment_list() 411 kfree(ent); in nilfs_dispose_segment_list() 420 struct nilfs_segment_entry *ent, *n; in nilfs_prepare_segment_for_recovery() local [all …]
|
/fs/ext4/ |
D | namei.c | 3608 static int ext4_rename_dir_prepare(handle_t *handle, struct ext4_renament *ent) in ext4_rename_dir_prepare() argument 3612 ent->dir_bh = ext4_get_first_dir_block(handle, ent->inode, in ext4_rename_dir_prepare() 3613 &retval, &ent->parent_de, in ext4_rename_dir_prepare() 3614 &ent->dir_inlined); in ext4_rename_dir_prepare() 3615 if (!ent->dir_bh) in ext4_rename_dir_prepare() 3617 if (le32_to_cpu(ent->parent_de->inode) != ent->dir->i_ino) in ext4_rename_dir_prepare() 3619 BUFFER_TRACE(ent->dir_bh, "get_write_access"); in ext4_rename_dir_prepare() 3620 return ext4_journal_get_write_access(handle, ent->dir->i_sb, in ext4_rename_dir_prepare() 3621 ent->dir_bh, EXT4_JTR_NONE); in ext4_rename_dir_prepare() 3624 static int ext4_rename_dir_finish(handle_t *handle, struct ext4_renament *ent, in ext4_rename_dir_finish() argument [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/exfat/ |
D | exfat_fs.h | 118 #define BITMAP_ENT_TO_CLUSTER(ent) ((ent) + EXFAT_RESERVED_CLUSTERS) argument 121 #define BITMAP_OFFSET_SECTOR_INDEX(sb, ent) \ argument 122 ((ent / BITS_PER_BYTE) >> (sb)->s_blocksize_bits) 123 #define BITMAP_OFFSET_BIT_IN_SECTOR(sb, ent) (ent & BITS_PER_SECTOR_MASK(sb)) argument 124 #define BITMAP_OFFSET_BYTE_IN_SECTOR(sb, ent) \ argument 125 ((ent / BITS_PER_BYTE) & ((sb)->s_blocksize - 1))
|
/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 639 int ent; /* entry index */ in xfs_dir2_block_lookup() local 648 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) in xfs_dir2_block_lookup() 660 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup() 787 int ent; /* block leaf entry index */ in xfs_dir2_block_removename() local 801 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_removename() 814 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename() 831 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename() 832 xfs_dir2_block_log_leaf(tp, bp, ent, ent); in xfs_dir2_block_removename() 868 int ent; /* leaf entry index */ in xfs_dir2_block_replace() local 877 if ((error = xfs_dir2_block_lookup_int(args, &bp, &ent))) { in xfs_dir2_block_replace() [all …]
|
D | xfs_attr_leaf.c | 242 struct xfs_attr_leaf_entry *ent, in xfs_attr3_leaf_verify_entry() argument 254 hashval = be32_to_cpu(ent->hashval); in xfs_attr3_leaf_verify_entry() 259 nameidx = be16_to_cpu(ent->nameidx); in xfs_attr3_leaf_verify_entry() 267 if (ent->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_verify_entry() 280 if (!(ent->flags & XFS_ATTR_INCOMPLETE) && in xfs_attr3_leaf_verify_entry() 299 struct xfs_attr_leaf_entry *ent; in xfs_attr3_leaf_verify() local 335 for (i = 0, ent = entries; i < ichdr.count; ent++, i++) { in xfs_attr3_leaf_verify() 337 ent, i, &last_hashval); in xfs_attr3_leaf_verify()
|
/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 | 993 struct nfs_cache_array_entry *ent; in nfs_do_filldir() local 995 ent = &array->array[i]; in nfs_do_filldir() 996 if (!dir_emit(desc->ctx, ent->name, ent->name_len, in nfs_do_filldir() 997 nfs_compat_user_ino64(ent->ino), ent->d_type)) { in nfs_do_filldir()
|
/fs/ |
D | binfmt_elf_fdpic.c | 607 struct { unsigned long _id, _val; } __user *ent, v; \ in create_elf_fdpic_tables() 609 ent = (void __user *) csp; \ in create_elf_fdpic_tables() 612 if (copy_to_user(ent + nr, &v, sizeof(v))) \ in create_elf_fdpic_tables()
|