Lines Matching refs:newpn
655 struct blkio_policy_node *newpn)
703 newpn->dev = dev;
713 newpn->weight = temp;
737 struct blkio_policy_node *newpn, *pn;
748 newpn = kzalloc(sizeof(*newpn), GFP_KERNEL);
749 if (!newpn) {
754 ret = blkio_policy_parse_and_set(buf, newpn);
762 pn = blkio_policy_search_node(blkcg, newpn->dev);
764 if (newpn->weight != 0) {
765 blkio_policy_insert_node(blkcg, newpn);
772 if (newpn->weight == 0) {
780 pn->weight = newpn->weight;
788 if (newpn->dev == blkg->dev) {
791 newpn->weight ?
792 newpn->weight :
802 kfree(newpn);