Displaying 2 results from an estimated 2 matches for "free_idx".
2007 Nov 28
0
Re: annoying network problem
...nd i see the following in the logs, The system this is
> > replacing is a old xen-2.07 box so im not familiar with peth.
> >
> > Jan 7 17:33:11 xen1 kernel: NETDEV WATCHDOG: peth0: transmit timed
> > out Jan 7 17:33:11 xen1 kernel: peth0: tx_timeout: tx_done_idx=10
> > free_idx=1 cmdsts=8000002a Jan 7 17:33:11 xen1 kernel: peth0: after:
> > tx_done_idx=10 free_idx=1 cmdsts=8000002a Jan 7 17:33:12 xen1
> > kernel: peth0: tx_timeout: tx_done_idx=10 free_idx=1 cmdsts=8000002a
> > Jan 7 17:33:12 xen1 kernel: peth0: after: tx_done_idx=10 free_idx=1
> >...
2012 Oct 04
3
[PATCH] btrfs ulist use rbtree instead
...alloced > ULIST_SIZE)
- old = ulist->nodes;
-
- new_nodes = krealloc(old, sizeof(*new_nodes) * new_alloced,
- gfp_mask);
- if (!new_nodes)
+ if (ulist->nodes_alloced == ulist->nnodes) {
+ pool = kmalloc(sizeof(*pool), gfp_mask);
+ if (!pool)
return -ENOMEM;
+ pool->free_idx = 0;
- if (!old)
- memcpy(new_nodes, ulist->int_nodes,
- sizeof(ulist->int_nodes));
+ if (unlikely(ulist->nodes_alloced == ULIST_SIZE)) {
+ int i;
+ for (i = 0; i < ULIST_SIZE; ++i)
+ __ulist_rbtree_add_node(ulist,
+ &ulist->int_nodes[i]);
+ ulist-&g...