Lines Matching refs:newblock
46 struct mem_block *newblock = kmalloc(sizeof(*newblock), in split_block() local
48 if (!newblock) in split_block()
50 newblock->start = start; in split_block()
51 newblock->size = p->size - (start - p->start); in split_block()
52 newblock->file_priv = NULL; in split_block()
53 newblock->next = p->next; in split_block()
54 newblock->prev = p; in split_block()
55 p->next->prev = newblock; in split_block()
56 p->next = newblock; in split_block()
57 p->size -= newblock->size; in split_block()
58 p = newblock; in split_block()
63 struct mem_block *newblock = kmalloc(sizeof(*newblock), in split_block() local
65 if (!newblock) in split_block()
67 newblock->start = start + size; in split_block()
68 newblock->size = p->size - size; in split_block()
69 newblock->file_priv = NULL; in split_block()
70 newblock->next = p->next; in split_block()
71 newblock->prev = p; in split_block()
72 p->next->prev = newblock; in split_block()
73 p->next = newblock; in split_block()