Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 98) sorted by relevance

1234

/fs/squashfs/
Dcache.c69 struct squashfs_cache_entry *entry; in squashfs_cache_get() local
75 if (cache->entry[i].block == block) { in squashfs_cache_get()
103 if (cache->entry[i].refcount == 0) in squashfs_cache_get()
109 entry = &cache->entry[i]; in squashfs_cache_get()
116 entry->block = block; in squashfs_cache_get()
117 entry->refcount = 1; in squashfs_cache_get()
118 entry->pending = 1; in squashfs_cache_get()
119 entry->num_waiters = 0; in squashfs_cache_get()
120 entry->error = 0; in squashfs_cache_get()
123 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
[all …]
Dsymlink.c57 struct squashfs_cache_entry *entry; in squashfs_symlink_readpage() local
84 entry = squashfs_cache_get(sb, msblk->block_cache, block, 0); in squashfs_symlink_readpage()
85 if (entry->error) { in squashfs_symlink_readpage()
89 squashfs_cache_put(entry); in squashfs_symlink_readpage()
94 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage()
99 block = entry->next_index; in squashfs_symlink_readpage()
101 squashfs_cache_put(entry); in squashfs_symlink_readpage()
/fs/btrfs/
Dordered-data.c30 static u64 entry_end(struct btrfs_ordered_extent *entry) in entry_end() argument
32 if (entry->file_offset + entry->len < entry->file_offset) in entry_end()
34 return entry->file_offset + entry->len; in entry_end()
45 struct btrfs_ordered_extent *entry; in tree_insert() local
49 entry = rb_entry(parent, struct btrfs_ordered_extent, rb_node); in tree_insert()
51 if (file_offset < entry->file_offset) in tree_insert()
53 else if (file_offset >= entry_end(entry)) in tree_insert()
82 struct btrfs_ordered_extent *entry; in __tree_search() local
86 entry = rb_entry(n, struct btrfs_ordered_extent, rb_node); in __tree_search()
88 prev_entry = entry; in __tree_search()
[all …]
Dfree-space-cache.c481 struct btrfs_free_space_entry *entry; in io_ctl_add_entry() local
486 entry = io_ctl->cur; in io_ctl_add_entry()
487 entry->offset = cpu_to_le64(offset); in io_ctl_add_entry()
488 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
489 entry->type = (bitmap) ? BTRFS_FREE_SPACE_BITMAP : in io_ctl_add_entry()
549 struct btrfs_free_space *entry, u8 *type) in io_ctl_read_entry() argument
561 entry->offset = le64_to_cpu(e->offset); in io_ctl_read_entry()
562 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
576 struct btrfs_free_space *entry) in io_ctl_read_bitmap() argument
584 memcpy(entry->bitmap, io_ctl->cur, PAGE_CACHE_SIZE); in io_ctl_read_bitmap()
[all …]
/fs/ext4/
Dblock_validity.c61 struct ext4_system_zone *new_entry = NULL, *entry; in add_system_zone() local
67 entry = rb_entry(parent, struct ext4_system_zone, node); in add_system_zone()
68 if (start_blk < entry->start_blk) in add_system_zone()
70 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone()
73 if (start_blk + count > (entry->start_blk + in add_system_zone()
74 entry->count)) in add_system_zone()
75 entry->count = (start_blk + count - in add_system_zone()
76 entry->start_blk); in add_system_zone()
100 entry = rb_entry(node, struct ext4_system_zone, node); in add_system_zone()
101 if (can_merge(entry, new_entry)) { in add_system_zone()
[all …]
Dxattr.c191 ext4_xattr_check_names(struct ext4_xattr_entry *entry, void *end, in ext4_xattr_check_names() argument
194 struct ext4_xattr_entry *e = entry; in ext4_xattr_check_names()
203 while (!IS_LAST_ENTRY(entry)) { in ext4_xattr_check_names()
204 if (entry->e_value_size != 0 && in ext4_xattr_check_names()
205 (value_start + le16_to_cpu(entry->e_value_offs) < in ext4_xattr_check_names()
207 value_start + le16_to_cpu(entry->e_value_offs) + in ext4_xattr_check_names()
208 le32_to_cpu(entry->e_value_size) > end)) in ext4_xattr_check_names()
210 entry = EXT4_XATTR_NEXT(entry); in ext4_xattr_check_names()
237 ext4_xattr_check_entry(struct ext4_xattr_entry *entry, size_t size) in ext4_xattr_check_entry() argument
239 size_t value_size = le32_to_cpu(entry->e_value_size); in ext4_xattr_check_entry()
[all …]
/fs/nilfs2/
Ddat.c91 struct nilfs_dat_entry *entry; in nilfs_dat_commit_alloc() local
95 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_alloc()
97 entry->de_start = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_alloc()
98 entry->de_end = cpu_to_le64(NILFS_CNO_MAX); in nilfs_dat_commit_alloc()
99 entry->de_blocknr = cpu_to_le64(0); in nilfs_dat_commit_alloc()
115 struct nilfs_dat_entry *entry; in nilfs_dat_commit_free() local
119 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_free()
121 entry->de_start = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_free()
122 entry->de_end = cpu_to_le64(NILFS_CNO_MIN); in nilfs_dat_commit_free()
123 entry->de_blocknr = cpu_to_le64(0); in nilfs_dat_commit_free()
[all …]
/fs/afs/
Dvlclient.c64 struct afs_cache_vlocation *entry; in afs_deliver_vl_get_entry_by_xxx() local
79 entry = call->reply; in afs_deliver_vl_get_entry_by_xxx()
83 entry->name[loop] = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
84 entry->name[loop] = 0; in afs_deliver_vl_get_entry_by_xxx()
88 entry->nservers = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
91 entry->servers[loop].s_addr = *bp++; in afs_deliver_vl_get_entry_by_xxx()
97 entry->srvtmask[loop] = 0; in afs_deliver_vl_get_entry_by_xxx()
99 entry->srvtmask[loop] |= AFS_VOL_VTM_RW; in afs_deliver_vl_get_entry_by_xxx()
101 entry->srvtmask[loop] |= AFS_VOL_VTM_RO; in afs_deliver_vl_get_entry_by_xxx()
103 entry->srvtmask[loop] |= AFS_VOL_VTM_BAK; in afs_deliver_vl_get_entry_by_xxx()
[all …]
/fs/proc/
Dproc_sysctl.c84 struct ctl_table *entry; in find_entry() local
95 entry = &head->ctl_table[ctl_node - head->node]; in find_entry()
96 procname = entry->procname; in find_entry()
105 return entry; in find_entry()
111 static int insert_entry(struct ctl_table_header *head, struct ctl_table *entry) in insert_entry() argument
113 struct rb_node *node = &head->node[entry - head->ctl_table].node; in insert_entry()
116 const char *name = entry->procname; in insert_entry()
140 pr_cont("/%s\n", entry->procname); in insert_entry()
150 static void erase_entry(struct ctl_table_header *head, struct ctl_table *entry) in erase_entry() argument
152 struct rb_node *node = &head->node[entry - head->ctl_table].node; in erase_entry()
[all …]
/fs/f2fs/
Drecovery.c31 struct fsync_inode_entry *entry; in get_fsync_inode() local
34 entry = list_entry(this, struct fsync_inode_entry, list); in get_fsync_inode()
35 if (entry->inode->i_ino == ino) in get_fsync_inode()
36 return entry; in get_fsync_inode()
113 struct fsync_inode_entry *entry; in find_fsync_dnodes() local
127 entry = get_fsync_inode(head, ino_of_node(page)); in find_fsync_dnodes()
128 if (entry) { in find_fsync_dnodes()
129 entry->blkaddr = blkaddr; in find_fsync_dnodes()
131 set_inode_flag(F2FS_I(entry->inode), in find_fsync_dnodes()
141 entry = kmem_cache_alloc(fsync_entry_slab, GFP_NOFS); in find_fsync_dnodes()
[all …]
Dxattr.h59 #define ENTRY_SIZE(entry) (XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + \ argument
60 entry->e_name_len + le16_to_cpu(entry->e_value_size)))
62 #define XATTR_NEXT_ENTRY(entry) ((struct f2fs_xattr_entry *)((char *)(entry) +\ argument
63 ENTRY_SIZE(entry)))
65 #define IS_XATTR_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument
67 #define list_for_each_xattr(entry, addr) \ argument
68 for (entry = XATTR_FIRST_ENTRY(addr);\
69 !IS_XATTR_LAST_ENTRY(entry);\
70 entry = XATTR_NEXT_ENTRY(entry))
Dacl.c56 struct f2fs_acl_entry *entry = (struct f2fs_acl_entry *)(hdr + 1); in f2fs_acl_from_disk() local
74 if ((char *)entry > end) in f2fs_acl_from_disk()
77 acl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag); in f2fs_acl_from_disk()
78 acl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm); in f2fs_acl_from_disk()
85 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk()
92 le32_to_cpu(entry->e_id)); in f2fs_acl_from_disk()
93 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk()
99 le32_to_cpu(entry->e_id)); in f2fs_acl_from_disk()
100 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk()
107 if ((char *)entry != end) in f2fs_acl_from_disk()
[all …]
/fs/
Dxattr_acl.c22 posix_acl_xattr_entry *entry = (posix_acl_xattr_entry *)(header+1), *end; in posix_acl_fix_xattr_userns() local
40 for (end = entry + count; entry != end; entry++) { in posix_acl_fix_xattr_userns()
41 switch(le16_to_cpu(entry->e_tag)) { in posix_acl_fix_xattr_userns()
43 uid = make_kuid(from, le32_to_cpu(entry->e_id)); in posix_acl_fix_xattr_userns()
44 entry->e_id = cpu_to_le32(from_kuid(to, uid)); in posix_acl_fix_xattr_userns()
47 gid = make_kgid(from, le32_to_cpu(entry->e_id)); in posix_acl_fix_xattr_userns()
48 entry->e_id = cpu_to_le32(from_kgid(to, gid)); in posix_acl_fix_xattr_userns()
80 posix_acl_xattr_entry *entry = (posix_acl_xattr_entry *)(header+1), *end; in posix_acl_from_xattr() local
103 for (end = entry + count; entry != end; acl_e++, entry++) { in posix_acl_from_xattr()
104 acl_e->e_tag = le16_to_cpu(entry->e_tag); in posix_acl_from_xattr()
[all …]
/fs/fuse/
Ddir.c41 static inline void fuse_dentry_settime(struct dentry *entry, u64 time) in fuse_dentry_settime() argument
43 entry->d_time = time; in fuse_dentry_settime()
46 static inline u64 fuse_dentry_time(struct dentry *entry) in fuse_dentry_time() argument
48 return entry->d_time; in fuse_dentry_time()
54 static void fuse_dentry_settime(struct dentry *entry, u64 time) in fuse_dentry_settime() argument
56 entry->d_time = time; in fuse_dentry_settime()
57 entry->d_fsdata = (void *) (unsigned long) (time >> 32); in fuse_dentry_settime()
60 static u64 fuse_dentry_time(struct dentry *entry) in fuse_dentry_time() argument
62 return (u64) entry->d_time + in fuse_dentry_time()
63 ((u64) (unsigned long) entry->d_fsdata << 32); in fuse_dentry_time()
[all …]
/fs/efivarfs/
Dsuper.c126 struct efivar_entry *entry; in efivarfs_callback() local
134 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in efivarfs_callback()
135 if (!entry) in efivarfs_callback()
138 memcpy(entry->var.VariableName, name16, name_size); in efivarfs_callback()
139 memcpy(&(entry->var.VendorGuid), &vendor, sizeof(efi_guid_t)); in efivarfs_callback()
141 len = ucs2_strlen(entry->var.VariableName); in efivarfs_callback()
149 name[i] = entry->var.VariableName[i] & 0xFF; in efivarfs_callback()
153 efi_guid_unparse(&entry->var.VendorGuid, name + len + 1); in efivarfs_callback()
170 efivar_entry_size(entry, &size); in efivarfs_callback()
171 efivar_entry_add(entry, &efivarfs_list); in efivarfs_callback()
[all …]
/fs/nfs_common/
Dnfsacl.c57 struct posix_acl_entry *entry = in xdr_nfsace_encode() local
60 *p++ = htonl(entry->e_tag | nfsacl_desc->typeflag); in xdr_nfsace_encode()
61 switch(entry->e_tag) { in xdr_nfsace_encode()
69 *p++ = htonl(from_kuid(&init_user_ns, entry->e_uid)); in xdr_nfsace_encode()
72 *p++ = htonl(from_kgid(&init_user_ns, entry->e_gid)); in xdr_nfsace_encode()
78 *p++ = htonl(entry->e_perm & S_IRWXO); in xdr_nfsace_encode()
152 struct posix_acl_entry *entry; in xdr_nfsace_decode() local
164 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
165 entry->e_tag = ntohl(*p++) & ~NFS_ACL_DEFAULT; in xdr_nfsace_decode()
167 entry->e_perm = ntohl(*p++); in xdr_nfsace_decode()
[all …]
/fs/fat/
Dfatent.c24 static void fat12_ent_blocknr(struct super_block *sb, int entry, in fat12_ent_blocknr() argument
28 int bytes = entry + (entry >> 1); in fat12_ent_blocknr()
29 WARN_ON(entry < FAT_START_ENT || sbi->max_cluster <= entry); in fat12_ent_blocknr()
34 static void fat_ent_blocknr(struct super_block *sb, int entry, in fat_ent_blocknr() argument
38 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr()
39 WARN_ON(entry < FAT_START_ENT || sbi->max_cluster <= entry); in fat_ent_blocknr()
126 if (fatent->entry & 1) in fat12_ent_get()
164 if (fatent->entry & 1) { in fat12_ent_put()
199 u8 *nextp = ent12_p[1] + 1 + (fatent->entry & 1); in fat12_ent_next()
201 fatent->entry++; in fat12_ent_next()
[all …]
/fs/xfs/
Dxfs_attr_leaf.c938 struct xfs_attr_leaf_entry *entry; in xfs_attr_shortform_allfit() local
946 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
949 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
950 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr_shortform_allfit()
952 if (!(entry->flags & XFS_ATTR_LOCAL)) in xfs_attr_shortform_allfit()
981 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_to_shortform() local
999 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
1032 for (i = 0; i < ichdr.count; entry++, i++) { in xfs_attr3_leaf_to_shortform()
1033 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr3_leaf_to_shortform()
1035 if (!entry->nameidx) in xfs_attr3_leaf_to_shortform()
[all …]
/fs/omfs/
Dfile.c35 struct omfs_extent_entry *entry; in omfs_shrink_inode() local
71 entry = &oe->e_entry; in omfs_shrink_inode()
76 start = be64_to_cpu(entry->e_cluster); in omfs_shrink_inode()
77 count = be64_to_cpu(entry->e_blocks); in omfs_shrink_inode()
80 entry++; in omfs_shrink_inode()
120 struct omfs_extent_entry *entry = &oe->e_entry; in omfs_grow_extent() local
142 terminator = entry + extent_count - 1; in omfs_grow_extent()
144 entry = terminator-1; in omfs_grow_extent()
145 new_block = be64_to_cpu(entry->e_cluster) + in omfs_grow_extent()
146 be64_to_cpu(entry->e_blocks); in omfs_grow_extent()
[all …]
/fs/ext2/
Dxattr.c70 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument
153 struct ext2_xattr_entry *entry; in ext2_xattr_get() local
189 entry = FIRST_ENTRY(bh); in ext2_xattr_get()
190 while (!IS_LAST_ENTRY(entry)) { in ext2_xattr_get()
192 EXT2_XATTR_NEXT(entry); in ext2_xattr_get()
195 if (name_index == entry->e_name_index && in ext2_xattr_get()
196 name_len == entry->e_name_len && in ext2_xattr_get()
197 memcmp(name, entry->e_name, name_len) == 0) in ext2_xattr_get()
199 entry = next; in ext2_xattr_get()
207 if (entry->e_value_block != 0) in ext2_xattr_get()
[all …]
/fs/ext3/
Dxattr.c62 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument
149 ext3_xattr_check_names(struct ext3_xattr_entry *entry, void *end) in ext3_xattr_check_names() argument
151 while (!IS_LAST_ENTRY(entry)) { in ext3_xattr_check_names()
152 struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(entry); in ext3_xattr_check_names()
155 entry = next; in ext3_xattr_check_names()
173 ext3_xattr_check_entry(struct ext3_xattr_entry *entry, size_t size) in ext3_xattr_check_entry() argument
175 size_t value_size = le32_to_cpu(entry->e_value_size); in ext3_xattr_check_entry()
177 if (entry->e_value_block != 0 || value_size > size || in ext3_xattr_check_entry()
178 le16_to_cpu(entry->e_value_offs) + value_size > size) in ext3_xattr_check_entry()
187 struct ext3_xattr_entry *entry; in ext3_xattr_find_entry() local
[all …]
/fs/hfsplus/
Dattributes.c115 void hfsplus_destroy_attr_entry(hfsplus_attr_entry *entry) in hfsplus_destroy_attr_entry() argument
117 if (entry) in hfsplus_destroy_attr_entry()
118 kmem_cache_free(hfsplus_attr_tree_cachep, entry); in hfsplus_destroy_attr_entry()
123 static int hfsplus_attr_build_record(hfsplus_attr_entry *entry, int record_type, in hfsplus_attr_build_record() argument
131 memset(entry, 0, sizeof(*entry)); in hfsplus_attr_build_record()
138 memset(entry, 0, sizeof(*entry)); in hfsplus_attr_build_record()
143 memset(entry, 0, sizeof(struct hfsplus_attr_inline_data)); in hfsplus_attr_build_record()
144 entry->inline_data.record_type = cpu_to_be32(record_type); in hfsplus_attr_build_record()
149 entry->inline_data.length = cpu_to_be16(len); in hfsplus_attr_build_record()
150 memcpy(entry->inline_data.raw_bytes, value, len); in hfsplus_attr_build_record()
[all …]
Ddir.c34 hfsplus_cat_entry entry; in hfsplus_lookup() local
47 err = hfs_brec_read(&fd, &entry, sizeof(entry)); in hfsplus_lookup()
57 type = be16_to_cpu(entry.type); in hfsplus_lookup()
63 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup()
70 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup()
71 if (entry.file.user_info.fdType == in hfsplus_lookup()
73 entry.file.user_info.fdCreator == in hfsplus_lookup()
75 (entry.file.create_date == in hfsplus_lookup()
78 entry.file.create_date == in hfsplus_lookup()
95 be32_to_cpu(entry.file.permissions.dev); in hfsplus_lookup()
[all …]
Dcatalog.c95 static int hfsplus_cat_build_record(hfsplus_cat_entry *entry, in hfsplus_cat_build_record() argument
103 folder = &entry->folder; in hfsplus_cat_build_record()
120 file = &entry->file; in hfsplus_cat_build_record()
165 hfsplus_cat_entry *entry, int type, in hfsplus_fill_cat_thread() argument
168 entry->type = cpu_to_be16(type); in hfsplus_fill_cat_thread()
169 entry->thread.reserved = 0; in hfsplus_fill_cat_thread()
170 entry->thread.parentID = cpu_to_be32(parentid); in hfsplus_fill_cat_thread()
171 hfsplus_asc2uni(sb, &entry->thread.nodeName, HFSPLUS_MAX_STRLEN, in hfsplus_fill_cat_thread()
173 return 10 + be16_to_cpu(entry->thread.nodeName.length) * 2; in hfsplus_fill_cat_thread()
211 hfsplus_cat_entry entry; in hfsplus_create_cat() local
[all …]
/fs/nfs/
Ddir.c221 int nfs_readdir_add_to_array(struct nfs_entry *entry, struct page *page) in nfs_readdir_add_to_array() argument
237 cache_entry->cookie = entry->prev_cookie; in nfs_readdir_add_to_array()
238 cache_entry->ino = entry->ino; in nfs_readdir_add_to_array()
239 cache_entry->d_type = entry->d_type; in nfs_readdir_add_to_array()
240 ret = nfs_readdir_make_qstr(&cache_entry->string, entry->name, entry->len); in nfs_readdir_add_to_array()
243 array->last_cookie = entry->cookie; in nfs_readdir_add_to_array()
245 if (entry->eof != 0) in nfs_readdir_add_to_array()
354 struct nfs_entry *entry, struct file *file, struct inode *inode) in nfs_readdir_xdr_filler() argument
364 error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, entry->cookie, pages, in nfs_readdir_xdr_filler()
383 struct nfs_entry *entry, struct xdr_stream *xdr) in xdr_decode() argument
[all …]

1234