Home
last modified time | relevance | path

Searched refs:new_entry (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/ceph/
H A Dsubvolume_metrics.c147 struct ceph_subvol_metric_rb_entry *entry, *new_entry = NULL; in ceph_subvolume_metrics_record() local
166 if (new_entry) in ceph_subvolume_metrics_record()
167 kmem_cache_free(ceph_subvol_metric_entry_cachep, new_entry); in ceph_subvolume_metrics_record()
173 if (!new_entry) { in ceph_subvolume_metrics_record()
175 new_entry = kmem_cache_zalloc(ceph_subvol_metric_entry_cachep, in ceph_subvolume_metrics_record()
177 if (!new_entry) in ceph_subvolume_metrics_record()
179 new_entry->subvolume_id = subvol_id; in ceph_subvolume_metrics_record()
183 entry = __insert_entry(tracker, new_entry); in ceph_subvolume_metrics_record()
184 if (entry != new_entry) { in ceph_subvolume_metrics_record()
187 kmem_cache_free(ceph_subvol_metric_entry_cachep, new_entry); in ceph_subvolume_metrics_record()
[all …]
/linux/drivers/iommu/generic_pt/
H A Dpt_fmt_defaults.h224 u64 new_entry; in pt_set_sw_bit_release() local
227 new_entry = old_entry | pt_sw_bit(bitnr); in pt_set_sw_bit_release()
228 } while (!try_cmpxchg64_release(entryp, &old_entry, new_entry)); in pt_set_sw_bit_release()
229 pts->entry = new_entry; in pt_set_sw_bit_release()
236 u32 new_entry; in pt_set_sw_bit_release() local
239 new_entry = old_entry | pt_sw_bit(bitnr); in pt_set_sw_bit_release()
240 } while (!try_cmpxchg_release(entryp, &old_entry, new_entry)); in pt_set_sw_bit_release()
241 pts->entry = new_entry; in pt_set_sw_bit_release()
/linux/fs/ext4/
H A Dblock_validity.c73 struct ext4_system_zone *new_entry, *entry; in add_system_zone() local
88 new_entry = kmem_cache_alloc(ext4_system_zone_cachep, in add_system_zone()
90 if (!new_entry) in add_system_zone()
92 new_entry->start_blk = start_blk; in add_system_zone()
93 new_entry->count = count; in add_system_zone()
94 new_entry->ino = ino; in add_system_zone()
95 new_node = &new_entry->node; in add_system_zone()
104 if (can_merge(entry, new_entry)) { in add_system_zone()
105 new_entry->start_blk = entry->start_blk; in add_system_zone()
106 new_entry->count += entry->count; in add_system_zone()
[all …]
H A Dmballoc.c6434 struct ext4_free_data *new_entry) in ext4_mb_free_metadata() argument
6438 ext4_grpblk_t clusters = new_entry->efd_count; in ext4_mb_free_metadata()
6451 new_node = &new_entry->efd_node; in ext4_mb_free_metadata()
6452 cluster = new_entry->efd_start_cluster; in ext4_mb_free_metadata()
6475 kmem_cache_free(ext4_free_data_cachep, new_entry); in ext4_mb_free_metadata()
6485 if (ext4_freed_extents_can_be_merged(new_entry, entry)) { in ext4_mb_free_metadata()
6487 entry->efd_count += new_entry->efd_count; in ext4_mb_free_metadata()
6488 kmem_cache_free(ext4_free_data_cachep, new_entry); in ext4_mb_free_metadata()
6492 if (ext4_freed_extents_can_be_merged(entry, new_entry)) { in ext4_mb_free_metadata()
6493 entry->efd_count += new_entry->efd_count; in ext4_mb_free_metadata()
[all …]
/linux/fs/btrfs/
H A Dlru_cache.c107 struct btrfs_lru_cache_entry *new_entry, in btrfs_lru_cache_store() argument
110 const u64 key = new_entry->key; in btrfs_lru_cache_store()
121 list_add_tail(&new_entry->list, head); in btrfs_lru_cache_store()
126 if (match_entry(head, key, new_entry->gen) != NULL) in btrfs_lru_cache_store()
128 list_add_tail(&new_entry->list, head); in btrfs_lru_cache_store()
143 list_add_tail(&new_entry->lru_list, &cache->lru_list); in btrfs_lru_cache_store()
H A Dlru_cache.h65 struct btrfs_lru_cache_entry *new_entry,
H A Dref-verify.c93 const struct block_entry *new_entry = rb_entry(new, struct block_entry, node); in block_entry_bytenr_cmp() local
95 return block_entry_bytenr_key_cmp(&new_entry->bytenr, existing); in block_entry_bytenr_cmp()
130 const struct root_entry *new_entry = rb_entry(new, struct root_entry, node); in root_entry_root_objectid_cmp() local
132 return root_entry_root_objectid_key_cmp(&new_entry->root_objectid, existing); in root_entry_root_objectid_cmp()
167 struct ref_entry *new_entry = rb_entry(new, struct ref_entry, node); in ref_entry_cmp() local
170 return comp_refs(new_entry, existing_entry); in ref_entry_cmp()
/linux/mm/
H A Dshmem_quota.c170 struct quota_id *new_entry, *entry; in shmem_acquire_dquot() local
193 new_entry = kzalloc_obj(struct quota_id, GFP_NOFS); in shmem_acquire_dquot()
194 if (!new_entry) { in shmem_acquire_dquot()
199 new_entry->id = id; in shmem_acquire_dquot()
201 new_entry->bhardlimit = sbinfo->qlimits.usrquota_bhardlimit; in shmem_acquire_dquot()
202 new_entry->ihardlimit = sbinfo->qlimits.usrquota_ihardlimit; in shmem_acquire_dquot()
204 new_entry->bhardlimit = sbinfo->qlimits.grpquota_bhardlimit; in shmem_acquire_dquot()
205 new_entry->ihardlimit = sbinfo->qlimits.grpquota_ihardlimit; in shmem_acquire_dquot()
208 new_node = &new_entry->node; in shmem_acquire_dquot()
211 entry = new_entry; in shmem_acquire_dquot()
/linux/security/tomoyo/
H A Ddomain.c31 int tomoyo_update_policy(struct tomoyo_acl_head *new_entry, const int size, in tomoyo_update_policy() argument
48 if (!check_duplicate(entry, new_entry)) in tomoyo_update_policy()
55 entry = tomoyo_commit_ok(new_entry, size); in tomoyo_update_policy()
92 int tomoyo_update_domain(struct tomoyo_acl_info *new_entry, const int size, in tomoyo_update_domain() argument
108 new_entry->cond = tomoyo_get_condition(param); in tomoyo_update_domain()
109 if (!new_entry->cond) in tomoyo_update_domain()
115 if (new_entry->cond->transit && in tomoyo_update_domain()
116 !(new_entry->type == TOMOYO_TYPE_PATH_ACL && in tomoyo_update_domain()
117 container_of(new_entry, struct tomoyo_path_acl, head) in tomoyo_update_domain()
127 if (!tomoyo_same_acl_head(entry, new_entry) || in tomoyo_update_domain()
[all …]
H A Dcommon.h1036 int tomoyo_update_domain(struct tomoyo_acl_info *new_entry, const int size,
1044 int tomoyo_update_policy(struct tomoyo_acl_head *new_entry, const int size,
/linux/drivers/s390/cio/
H A Dqdio_debug.c63 struct qdio_dbf_entry *new_entry; in qdio_allocate_dbf() local
84 new_entry = kzalloc_obj(struct qdio_dbf_entry); in qdio_allocate_dbf()
85 if (!new_entry) { in qdio_allocate_dbf()
89 strscpy(new_entry->dbf_name, text, QDIO_DBF_NAME_LEN); in qdio_allocate_dbf()
90 new_entry->dbf_info = irq_ptr->debug_area; in qdio_allocate_dbf()
92 list_add(&new_entry->dbf_list, &qdio_dbf_list); in qdio_allocate_dbf()
/linux/tools/perf/util/
H A Drblist.h27 struct rb_node *(*node_new)(struct rblist *rlist, const void *new_entry);
34 int rblist__add_node(struct rblist *rblist, const void *new_entry);
H A Drblist.c13 int rblist__add_node(struct rblist *rblist, const void *new_entry) in rblist__add_node() argument
24 rc = rblist->node_cmp(parent, new_entry); in rblist__add_node()
35 new_node = rblist->node_new(rblist, new_entry); in rblist__add_node()
H A Dstrlist.c57 int strlist__add(struct strlist *slist, const char *new_entry) in strlist__add() argument
59 return rblist__add_node(&slist->rblist, new_entry); in strlist__add()
H A Dsymbol.c2326 static int vmlinux_path__add(const char *new_entry) in symbol__read_kptr_restrict()
2328 vmlinux_path[vmlinux_path__nr_entries] = strdup(new_entry); in symbol__read_kptr_restrict()
2197 vmlinux_path__add(const char * new_entry) vmlinux_path__add() argument
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c155 struct mlx4_steer_index *new_entry; in new_steering_entry() local
165 new_entry = kzalloc_obj(*new_entry); in new_steering_entry()
166 if (!new_entry) in new_steering_entry()
169 INIT_LIST_HEAD(&new_entry->duplicates); in new_steering_entry()
170 new_entry->index = index; in new_steering_entry()
171 list_add_tail(&new_entry->list, &s_steer->steer_entries[steer]); in new_steering_entry()
184 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
233 list_del(&new_entry->list); in new_steering_entry()
234 kfree(new_entry); in new_steering_entry()
1117 u8 new_entry = 0; in mlx4_qp_attach_common() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Daffinity.c587 bool new_entry = false; in hfi1_dev_affinity_init() local
608 new_entry = true; in hfi1_dev_affinity_init()
685 ret = _dev_comp_vect_cpu_mask_init(dd, entry, new_entry); in hfi1_dev_affinity_init()
689 if (new_entry) in hfi1_dev_affinity_init()
698 if (new_entry) in hfi1_dev_affinity_init()
/linux/rust/kernel/
H A Dfirmware.rs320 pub const fn new_entry(self) -> Self { in new_entry() method
/linux/drivers/iommu/
H A Dvirtio-iommu.c972 struct iommu_resv_region *entry, *new_entry, *msi = NULL; in viommu_get_resv_regions() local
980 new_entry = kmemdup(entry, sizeof(*entry), GFP_KERNEL); in viommu_get_resv_regions()
981 if (!new_entry) in viommu_get_resv_regions()
983 list_add_tail(&new_entry->list, head); in viommu_get_resv_regions()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c1193 struct mlxsw_sp_acl_tcam_entry *new_entry; in mlxsw_sp_acl_tcam_ventry_migrate() local
1202 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1203 if (IS_ERR(new_entry)) in mlxsw_sp_acl_tcam_ventry_migrate()
1204 return PTR_ERR(new_entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1206 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
/linux/drivers/accel/habanalabs/common/
H A Ddebugfs.c1068 struct hl_debugfs_cfg_access_entry *new_entry; in check_if_cfg_access_and_log() local
1078 new_entry = &dbgfs_cfg_accesses->cfg_access_list[dbgfs_cfg_accesses->head]; in check_if_cfg_access_and_log()
1079 new_entry->seconds_since_epoch = ktime_get_real_seconds(); in check_if_cfg_access_and_log()
1080 new_entry->addr = addr; in check_if_cfg_access_and_log()
1081 new_entry->debugfs_type = access_type; in check_if_cfg_access_and_log()
1082 new_entry->valid = true; in check_if_cfg_access_and_log()
/linux/drivers/scsi/
H A Dhpsa.c1357 int entry, struct hpsa_scsi_dev_t *new_entry) in hpsa_scsi_update_entry() argument
1363 h->dev[entry]->raid_level = new_entry->raid_level; in hpsa_scsi_update_entry()
1368 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1371 if (new_entry->offload_config && new_entry->offload_to_be_enabled) { in hpsa_scsi_update_entry()
1380 h->dev[entry]->raid_map = new_entry->raid_map; in hpsa_scsi_update_entry()
1381 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1383 if (new_entry->offload_to_be_enabled) { in hpsa_scsi_update_entry()
1384 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1387 h->dev[entry]->hba_ioaccel_enabled = new_entry->hba_ioaccel_enabled; in hpsa_scsi_update_entry()
1388 h->dev[entry]->offload_config = new_entry->offload_config; in hpsa_scsi_update_entry()
[all …]
H A Dpmcraid.c1517 u32 new_entry = 1; in pmcraid_handle_config_change() local
1578 new_entry = 0; in pmcraid_handle_config_change()
1583 if (new_entry) { in pmcraid_handle_config_change()
/linux/security/selinux/ss/
H A Dservices.c867 struct sidtab_entry *old_entry, *new_entry; in security_bounded_transition()
889 new_entry = sidtab_search_entry(sidtab, new_sid); in security_bounded_transition()
890 if (!new_entry) { in security_bounded_transition()
898 if (old_entry->context.type == new_entry->context.type) in security_bounded_transition()
901 index = new_entry->context.type; in security_bounded_transition()
926 !sidtab_entry_to_string(policydb, sidtab, new_entry, in security_bounded_transition()
866 struct sidtab_entry *old_entry, *new_entry; security_bounded_transition() local
/linux/drivers/net/dsa/
H A Dmt7530.c2008 struct mt7530_hw_vlan_entry new_entry; in mt7530_port_vlan_add() local
2020 mt7530_hw_vlan_entry_init(&new_entry, port, untagged); in mt7530_port_vlan_add()
2021 mt7530_hw_vlan_update(priv, vlan->vid, &new_entry, mt7530_hw_vlan_add); in mt7530_port_vlan_add()

12