| /fs/squashfs/ |
| A D | cache.c | 96 entry = &cache->entry[i]; in squashfs_cache_get() 111 &entry->next_index, entry->actor); in squashfs_cache_get() 116 entry->error = entry->length; in squashfs_cache_get() 140 entry = &cache->entry[i]; in squashfs_cache_get() 152 wait_event(entry->wait_queue, !entry->pending); in squashfs_cache_get() 161 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 163 if (entry->error) in squashfs_cache_get() 166 return entry; in squashfs_cache_get() 178 entry->refcount--; in squashfs_cache_put() 257 struct squashfs_cache_entry *entry = &cache->entry[i]; in squashfs_cache_init() local [all …]
|
| /fs/ |
| A D | mbcache.c | 89 if (!entry) in mb_cache_entry_create() 101 entry->e_key = key; in mb_cache_entry_create() 162 if (entry && !hlist_bl_unhashed(&entry->e_hash_list)) in __entry_find() 175 entry = NULL; in __entry_find() 181 return entry; in __entry_find() 212 return __entry_find(cache, entry, entry->e_key); in mb_cache_entry_find_next() 232 if (entry->e_key == key && entry->e_value == value && in mb_cache_entry_get() 236 entry = NULL; in mb_cache_entry_get() 239 return entry; in mb_cache_entry_get() 260 if (!entry) in mb_cache_entry_delete_or_get() [all …]
|
| A D | dax.c | 215 void *entry; in get_next_unlocked_entry() local 224 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in get_next_unlocked_entry() 302 if (entry && !dax_is_conflict(entry)) in put_unlocked_entry() 503 void *entry; in dax_lock_folio() local 790 entry = wait_entry_unlocked_exclusive(&xas, entry); in dax_layout_busy_page_range() 791 if (entry) in dax_layout_busy_page_range() 824 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in __dax_invalidate_entry() 849 entry = wait_entry_unlocked_exclusive(&xas, entry); in __dax_clear_dirty_range() 906 entry = wait_entry_unlocked_exclusive(&xas, entry); in dax_delete_mapping_range() 1120 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in dax_writeback_one() [all …]
|
| /fs/btrfs/ |
| A D | ordered-data.c | 28 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end() 30 return entry->file_offset + entry->num_bytes; in entry_end() 118 entry->file_offset + entry->num_bytes <= file_offset) in btrfs_range_overlaps() 176 if (!entry) { in alloc_ordered_extent() 222 return entry; in alloc_ordered_extent() 318 return entry; in btrfs_alloc_ordered_extent() 503 entry_end = entry->file_offset + entry->num_bytes; in btrfs_mark_ordered_io_finished() 538 end = min(entry->file_offset + entry->num_bytes, in btrfs_mark_ordered_io_finished() 626 trace_btrfs_ordered_extent_put(entry->inode, entry); in btrfs_put_ordered_extent() 984 if (entry) { in btrfs_lookup_ordered_extent() [all …]
|
| A D | free-space-cache.c | 1680 if (entry->bitmap && entry->max_extent_size) in get_max_extent_size() 1796 } else if (entry->offset + entry->bytes > offset) in tree_search_offset() 1812 if (entry->offset + entry->bytes > offset) in tree_search_offset() 3105 if (!entry) in btrfs_find_space_for_alloc() 3252 (!entry->bitmap && entry->offset < min_start)) { in btrfs_alloc_from_cluster() 3431 if (!entry) in setup_cluster_no_bitmap() 3438 while (entry->bitmap || entry->bytes < min_bytes) { in setup_cluster_no_bitmap() 3439 if (entry->bitmap && list_empty(&entry->list)) in setup_cluster_no_bitmap() 3487 if (entry->bitmap || entry->bytes < min_bytes) in setup_cluster_no_bitmap() 3527 if (!entry || entry->offset != bitmap_offset) { in setup_cluster_bitmap() [all …]
|
| A D | lru_cache.c | 26 struct btrfs_lru_cache_entry *entry; in match_entry() local 28 list_for_each_entry(entry, head, list) { in match_entry() 29 if (entry->key == key && entry->gen == gen) in match_entry() 30 return entry; in match_entry() 49 struct btrfs_lru_cache_entry *entry; in btrfs_lru_cache_lookup() local 55 entry = match_entry(head, key, gen); in btrfs_lru_cache_lookup() 56 if (entry) in btrfs_lru_cache_lookup() 59 return entry; in btrfs_lru_cache_lookup() 78 list_del(&entry->list); in btrfs_lru_cache_remove() 79 list_del(&entry->lru_list); in btrfs_lru_cache_remove() [all …]
|
| /fs/nfs/ |
| A D | nfs42xattr.c | 243 return entry; in nfs4_xattr_alloc_entry() 251 kfree(entry); in nfs4_xattr_free_entry() 515 entry = NULL; in nfs4_xattr_get_entry() 522 return entry; in nfs4_xattr_get_entry() 582 if (entry != NULL) in nfs4_xattr_hash_remove() 597 if (entry != NULL) in nfs4_xattr_hash_find() 602 return entry; in nfs4_xattr_hash_find() 624 entry->xattr_name, (unsigned long)entry->xattr_size); in nfs4_xattr_cache_get() 631 memcpy(buf, entry->xattr_value, entry->xattr_size); in nfs4_xattr_cache_get() 662 if (entry != NULL && entry != ERR_PTR(-ESTALE)) { in nfs4_xattr_cache_list() [all …]
|
| /fs/bcachefs/ |
| A D | sb-clean.c | 30 struct jset_entry *entry; in bch2_sb_clean_validate_late() local 35 entry = vstruct_next(entry)) { in bch2_sb_clean_validate_late() 71 for (entry = start; entry < end; entry = vstruct_next(entry)) in btree_root_find() 78 if (!entry->u64s) in btree_root_find() 81 k = entry->start; in btree_root_find() 82 *level = entry->level; in btree_root_find() 225 entry = vstruct_next(entry)) { in bch2_sb_clean_validate() 248 entry = vstruct_next(entry)) { in bch2_sb_clean_to_text() 253 !entry->u64s) in bch2_sb_clean_to_text() 319 entry = bch2_btree_roots_to_journal_entries(c, entry, 0); in bch2_fs_mark_clean() [all …]
|
| A D | journal_io.h | 41 while (entry < vstruct_last(jset)) { in __jset_entry_type_next() 42 if (entry->type == type) in __jset_entry_type_next() 43 return entry; in __jset_entry_type_next() 45 entry = vstruct_next(entry); in __jset_entry_type_next() 53 (entry = __jset_entry_type_next(jset, entry, type)); \ 54 entry = vstruct_next(entry)) 63 jset_entry_for_each_key(entry, k) 80 struct jset_entry *entry = *end; in jset_entry_init() local 83 memset(entry, 0, u64s * sizeof(u64)); in jset_entry_init() 88 entry->u64s = cpu_to_le16(u64s - 1); in jset_entry_init() [all …]
|
| A D | journal_io.c | 74 container_of(entry, struct jset_entry_datetime, entry); in bch2_journal_datetime_to_text() 277 for (entry = start; entry != end; entry = vstruct_next(entry)) in journal_entry_null_range() 278 memset(entry, 0, sizeof(*entry)); in journal_entry_null_range() 304 if (entry) in journal_entry_err_msg() 359 entry->u64s = cpu_to_le16((u64 *) k - entry->_data); in journal_validate_key() 369 entry->u64s = cpu_to_le16((u64 *) k - entry->_data); in journal_validate_key() 520 journal_entry_null_range(entry, vstruct_next(entry)); in journal_entry_blacklist_validate() 584 container_of(entry, struct jset_entry_usage, entry); in journal_entry_usage_validate() 604 container_of(entry, struct jset_entry_usage, entry); in journal_entry_usage_to_text() 662 container_of(entry, struct jset_entry_clock, entry); in journal_entry_clock_validate() [all …]
|
| A D | extents.c | 906 if (i == entry) in extent_entry_prev() 943 extent_entry_drop(k, entry); in bch2_bkey_drop_ptr_noerror() 945 while ((entry = extent_entry_prev(ptrs, entry))) { in bch2_bkey_drop_ptr_noerror() 1450 if (!entry->ptr.unwritten) in bch2_bkey_ptrs_validate() 1564 for (entry = ptrs.start; in bch2_ptr_swab() 1565 entry < ptrs.end; in bch2_ptr_swab() 1566 entry = extent_entry_next(entry)) { in bch2_ptr_swab() 1571 entry->crc32.csum = swab32(entry->crc32.csum); in bch2_ptr_swab() 1574 entry->crc64.csum_hi = swab16(entry->crc64.csum_hi); in bch2_ptr_swab() 1575 entry->crc64.csum_lo = swab64(entry->crc64.csum_lo); in bch2_ptr_swab() [all …]
|
| A D | journal.h | 198 memset(entry, 0, sizeof(*entry)); in bch2_journal_add_entry_noreservation() 199 entry->u64s = cpu_to_le16(u64s); in bch2_journal_add_entry_noreservation() 203 return entry; in bch2_journal_add_entry_noreservation() 216 entry->u64s = cpu_to_le16(u64s); in journal_entry_init() 217 entry->btree_id = id; in journal_entry_init() 218 entry->level = level; in journal_entry_init() 219 entry->type = type; in journal_entry_init() 220 entry->pad[0] = 0; in journal_entry_init() 221 entry->pad[1] = 0; in journal_entry_init() 222 entry->pad[2] = 0; in journal_entry_init() [all …]
|
| /fs/nilfs2/ |
| A D | dat.c | 91 struct nilfs_dat_entry *entry; in nilfs_dat_commit_alloc() local 100 kunmap_local(entry); in nilfs_dat_commit_alloc() 115 struct nilfs_dat_entry *entry; in nilfs_dat_commit_free() local 124 kunmap_local(entry); in nilfs_dat_commit_free() 153 kunmap_local(entry); in nilfs_dat_commit_start() 175 kunmap_local(entry); in nilfs_dat_prepare_end() 215 kunmap_local(entry); in nilfs_dat_commit_end() 235 kunmap_local(entry); in nilfs_dat_abort_end() 366 kunmap_local(entry); in nilfs_dat_move() 372 kunmap_local(entry); in nilfs_dat_move() [all …]
|
| /fs/ocfs2/ |
| A D | filecheck.c | 162 kfree(entry->fs_fcheck); in ocfs2_filecheck_sysfs_free() 163 entry->fs_fcheck = NULL; in ocfs2_filecheck_sysfs_free() 187 kobject_put(&entry->fs_kobj); in ocfs2_filecheck_create_sysfs() 192 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs() 400 entry->fe_done = 1; in ocfs2_filecheck_done_entry() 468 if (!entry) { in ocfs2_filecheck_attr_store() 476 kfree(entry); in ocfs2_filecheck_attr_store() 484 kfree(entry); in ocfs2_filecheck_attr_store() 495 entry->fe_ino = args.fa_ino; in ocfs2_filecheck_attr_store() 496 entry->fe_type = args.fa_type; in ocfs2_filecheck_attr_store() [all …]
|
| /fs/resctrl/ |
| A D | monitor.c | 113 return entry; in __rmid_entry() 162 if (resctrl_arch_rmid_read(r, d, entry->closid, entry->rmid, in __check_limbo() 177 trace_mon_llc_occupancy_limbo(entry->closid, entry->rmid, d->hdr.id, val); in __check_limbo() 182 if (!--entry->busy) in __check_limbo() 282 if (IS_ERR(entry)) in alloc_rmid() 286 return entry->rmid; in alloc_rmid() 300 idx = resctrl_arch_rmid_idx_encode(entry->closid, entry->rmid); in add_rmid_to_limbo() 302 entry->busy = 0; in add_rmid_to_limbo() 312 entry->busy++; in add_rmid_to_limbo() 475 if (__mon_event_count(entry->closid, entry->mon.rmid, in mon_event_count() [all …]
|
| /fs/ext4/ |
| A D | block_validity.c | 57 struct ext4_system_zone *entry, *n; in release_system_zone() local 80 if (start_blk < entry->start_blk) in add_system_zone() 82 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone() 104 if (can_merge(entry, new_entry)) { in add_system_zone() 106 new_entry->count += entry->count; in add_system_zone() 116 if (can_merge(new_entry, entry)) { in add_system_zone() 117 new_entry->count += entry->count; in add_system_zone() 128 struct ext4_system_zone *entry; in debug_print_tree() local 139 entry->start_blk, entry->start_blk + entry->count - 1); in debug_print_tree() 300 struct ext4_system_zone *entry; in ext4_sb_block_valid() local [all …]
|
| A D | xattr.c | 281 entry = EXT4_XATTR_NEXT(entry); in check_xattrs() 330 for (entry = *pentry; !IS_LAST_ENTRY(entry); entry = next) { in xattr_find_entry() 720 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_list_entries() 871 entry = EXT4_XATTR_NEXT(entry)) in ext4_get_inode_usage() 889 entry = EXT4_XATTR_NEXT(entry)) in ext4_get_inode_usage() 1010 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) in __ext4_xattr_set_credits() 1088 for (entry = first; !IS_LAST_ENTRY(entry); in ext4_xattr_inode_inc_ref_all() 1089 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_inode_inc_ref_all() 1113 entry = EXT4_XATTR_NEXT(entry)) { in ext4_xattr_inode_inc_ref_all() 1179 for (entry = first; (void *)entry < end && !IS_LAST_ENTRY(entry); in ext4_xattr_inode_dec_ref_all() [all …]
|
| /fs/proc/ |
| A D | proc_sysctl.c | 140 return entry; in find_entry() 365 entry = NULL; in lookup_entry() 367 return entry; in lookup_entry() 397 *pentry = entry; in first_entry() 417 *pentry = entry; in next_entry() 781 for (first_entry(ctl_dir, &h, &entry); h; next_entry(&h, &entry)) { in proc_sys_readdir() 951 if (!entry) in find_subdir() 1082 *pentry = entry; in sysctl_follow_link() 1163 if (!entry->data) in sysctl_check_table() 1173 if ((entry->mode & (S_IRUGO|S_IWUGO)) != entry->mode) in sysctl_check_table() [all …]
|
| /fs/smb/client/ |
| A D | cached_dir.c | 21 struct list_head entry; member 500 LIST_HEAD(entry); in close_all_cached_dirs() 530 list_add_tail(&tmp_list->entry, &entry); in close_all_cached_dirs() 537 list_for_each_entry_safe(tmp_list, q, &entry, entry) { in close_all_cached_dirs() 710 LIST_HEAD(entry); in cfids_invalidation_worker() 717 list_for_each_entry_safe(cfid, q, &entry, entry) { in cfids_invalidation_worker() 738 list_move(&cfid->entry, &entry); in cfids_laundromat_worker() 752 list_for_each_entry_safe(cfid, q, &entry, entry) { in cfids_laundromat_worker() 817 list_move(&cfid->entry, &entry); in free_cached_dirs() 822 list_move(&cfid->entry, &entry); in free_cached_dirs() [all …]
|
| /fs/f2fs/ |
| A D | acl.c | 72 if ((char *)entry > end) in f2fs_acl_from_disk() 83 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk() 91 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk() 98 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_from_disk() 105 if ((char *)entry != end) in f2fs_acl_from_disk() 117 struct f2fs_acl_entry *entry; in f2fs_acl_to_disk() local 136 entry->e_id = cpu_to_le32( in f2fs_acl_to_disk() 139 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_to_disk() 143 entry->e_id = cpu_to_le32( in f2fs_acl_to_disk() 146 entry = (struct f2fs_acl_entry *)((char *)entry + in f2fs_acl_to_disk() [all …]
|
| A D | xattr.h | 62 #define ENTRY_SIZE(entry) (XATTR_ALIGN(sizeof(struct f2fs_xattr_entry) + \ argument 63 (entry)->e_name_len + le16_to_cpu((entry)->e_value_size))) 65 #define XATTR_NEXT_ENTRY(entry) ((struct f2fs_xattr_entry *)((char *)(entry) +\ argument 66 ENTRY_SIZE(entry))) 68 #define IS_XATTR_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument 70 #define list_for_each_xattr(entry, addr) \ argument 71 for (entry = XATTR_FIRST_ENTRY(addr);\ 72 !IS_XATTR_LAST_ENTRY(entry);\ 73 entry = XATTR_NEXT_ENTRY(entry))
|
| A D | recovery.c | 69 return entry; in get_fsync_inode() 97 entry->inode = inode; in add_fsync_inode() 100 return entry; in add_fsync_inode() 112 iput(entry->inode); in del_fsync_inode() 113 list_del(&entry->list); in del_fsync_inode() 175 if (!entry) { in recover_dentry() 178 if (IS_ERR(entry)) { in recover_dentry() 180 err = PTR_ERR(entry); in recover_dentry() 185 dir = entry->inode; in recover_dentry() 436 if (!entry) { in find_fsync_dnodes() [all …]
|
| /fs/fuse/ |
| A D | dir.c | 167 d_invalidate(entry); in fuse_invalidate_entry() 447 entry = newent ? newent : entry; in fuse_lookup() 448 entry->d_time = epoch; in fuse_lookup() 476 err = security_dentry_init_security(entry, mode, &entry->d_name, in get_security_context() 753 entry = res; in fuse_atomic_open() 837 d_drop(entry); in create_new_entry() 1400 struct dentry *entry; in fuse_reverse_inval_entry() local 1418 if (!entry) in fuse_reverse_inval_entry() 1444 dont_mount(entry); in fuse_reverse_inval_entry() 1450 d_delete(entry); in fuse_reverse_inval_entry() [all …]
|
| /fs/ext2/ |
| A D | xattr.c | 72 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument 237 entry = FIRST_ENTRY(bh); in ext2_xattr_get() 244 entry); in ext2_xattr_get() 250 entry = EXT2_XATTR_NEXT(entry); in ext2_xattr_get() 323 entry = FIRST_ENTRY(bh); in ext2_xattr_list() 328 entry = EXT2_XATTR_NEXT(entry); in ext2_xattr_list() 334 for (entry = FIRST_ENTRY(bh); !IS_LAST_ENTRY(entry); in ext2_xattr_list() 335 entry = EXT2_XATTR_NEXT(entry)) { in ext2_xattr_list() 350 memcpy(buffer, entry->e_name, entry->e_name_len); in ext2_xattr_list() 992 char *name = entry->e_name; in ext2_xattr_hash_entry() [all …]
|
| /fs/smb/server/mgmt/ |
| A D | user_session.c | 44 struct ksmbd_session_rpc *entry) in __session_rpc_close() argument 53 ksmbd_rpc_id_free(entry->id); in __session_rpc_close() 54 kfree(entry); in __session_rpc_close() 59 struct ksmbd_session_rpc *entry; in ksmbd_session_rpc_clear_list() local 104 if (!entry) in ksmbd_session_rpc_open() 108 entry->method = method; in ksmbd_session_rpc_open() 126 ksmbd_rpc_id_free(entry->id); in ksmbd_session_rpc_open() 128 kfree(entry); in ksmbd_session_rpc_open() 135 struct ksmbd_session_rpc *entry; in ksmbd_session_rpc_close() local 139 if (entry) in ksmbd_session_rpc_close() [all …]
|