Lines Matching refs:new_ptbl
928 * @new_ptbl: new part_tbl to install
930 * Replace disk->part_tbl with @new_ptbl in RCU-safe way. The
937 struct disk_part_tbl *new_ptbl)
941 rcu_assign_pointer(disk->part_tbl, new_ptbl);
966 struct disk_part_tbl *new_ptbl;
979 size = sizeof(*new_ptbl) + target * sizeof(new_ptbl->part[0]);
980 new_ptbl = kzalloc_node(size, GFP_KERNEL, disk->node_id);
981 if (!new_ptbl)
984 new_ptbl->len = target;
987 rcu_assign_pointer(new_ptbl->part[i], old_ptbl->part[i]);
989 disk_replace_part_tbl(disk, new_ptbl);