Searched refs:new_stat (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/net/core/ |
H A D | drop_monitor.c | 192 struct dm_hw_stat_delta *new_stat; trace_napi_poll_hit() local 201 list_for_each_entry_rcu(new_stat, &hw_stats_list, list) { trace_napi_poll_hit() 208 if ((new_stat->dev == napi->dev) && trace_napi_poll_hit() 209 (time_after(jiffies, new_stat->last_rx + dm_hw_check_delta)) && trace_napi_poll_hit() 210 (napi->dev->stats.rx_dropped != new_stat->last_drop_val)) { trace_napi_poll_hit() 212 new_stat->last_drop_val = napi->dev->stats.rx_dropped; trace_napi_poll_hit() 213 new_stat->last_rx = jiffies; trace_napi_poll_hit() 223 struct dm_hw_stat_delta *new_stat = NULL; set_all_monitor_traces() local 253 list_for_each_entry_safe(new_stat, temp, &hw_stats_list, list) { set_all_monitor_traces() 254 if (new_stat->dev == NULL) { set_all_monitor_traces() 255 list_del_rcu(&new_stat->list); set_all_monitor_traces() 256 kfree_rcu(new_stat, rcu); set_all_monitor_traces() 303 struct dm_hw_stat_delta *new_stat = NULL; dropmon_net_event() local 308 new_stat = kzalloc(sizeof(struct dm_hw_stat_delta), GFP_KERNEL); dropmon_net_event() 310 if (!new_stat) dropmon_net_event() 313 new_stat->dev = dev; dropmon_net_event() 314 new_stat->last_rx = jiffies; dropmon_net_event() 316 list_add_rcu(&new_stat->list, &hw_stats_list); dropmon_net_event() 321 list_for_each_entry_safe(new_stat, tmp, &hw_stats_list, list) { dropmon_net_event() 322 if (new_stat->dev == dev) { dropmon_net_event() 323 new_stat->dev = NULL; dropmon_net_event() 325 list_del_rcu(&new_stat->list); dropmon_net_event() 326 kfree_rcu(new_stat, rcu); dropmon_net_event()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | lprocfs_status.c | 1662 struct nid_stat *new_stat, *old_stat; lprocfs_exp_setup() local 1684 OBD_ALLOC_PTR(new_stat); lprocfs_exp_setup() 1685 if (new_stat == NULL) lprocfs_exp_setup() 1688 new_stat->nid = *nid; lprocfs_exp_setup() 1689 new_stat->nid_obd = exp->exp_obd; lprocfs_exp_setup() 1691 atomic_set(&new_stat->nid_exp_ref_count, 1); lprocfs_exp_setup() 1694 nid, &new_stat->nid_hash); lprocfs_exp_setup() 1697 atomic_read(&new_stat->nid_exp_ref_count)); lprocfs_exp_setup() 1708 if (old_stat != new_stat) { lprocfs_exp_setup() 1721 new_stat->nid_proc = lprocfs_register(buffer, lprocfs_exp_setup() 1726 if (IS_ERR(new_stat->nid_proc)) { lprocfs_exp_setup() 1729 rc = PTR_ERR(new_stat->nid_proc); lprocfs_exp_setup() 1730 new_stat->nid_proc = NULL; lprocfs_exp_setup() 1734 entry = lprocfs_add_simple(new_stat->nid_proc, "uuid", lprocfs_exp_setup() 1735 new_stat, &lproc_exp_uuid_fops); lprocfs_exp_setup() 1742 entry = lprocfs_add_simple(new_stat->nid_proc, "hash", lprocfs_exp_setup() 1743 new_stat, &lproc_exp_hash_fops); lprocfs_exp_setup() 1750 exp->exp_nid_stats = new_stat; lprocfs_exp_setup() 1754 list_add(&new_stat->nid_list, &obd->obd_nid_stats); lprocfs_exp_setup() 1760 if (new_stat->nid_proc != NULL) lprocfs_exp_setup() 1761 lprocfs_remove(&new_stat->nid_proc); lprocfs_exp_setup() 1762 cfs_hash_del(obd->obd_nid_stats_hash, nid, &new_stat->nid_hash); lprocfs_exp_setup() 1765 nidstat_putref(new_stat); lprocfs_exp_setup() 1766 OBD_FREE_PTR(new_stat); lprocfs_exp_setup()
|
Completed in 147 milliseconds