Lines Matching defs:old_idx
79 struct ubifs_old_idx *old_idx, *o;
82 old_idx = kmalloc(sizeof(struct ubifs_old_idx), GFP_NOFS);
83 if (unlikely(!old_idx))
85 old_idx->lnum = lnum;
86 old_idx->offs = offs;
88 p = &c->old_idx.rb_node;
102 kfree(old_idx);
106 rb_link_node(&old_idx->rb, parent, p);
107 rb_insert_color(&old_idx->rb, &c->old_idx);
170 * destroy_old_idx - destroy the old_idx RB-tree.
173 * During start commit, the old_idx RB-tree is used to avoid overwriting index
181 struct rb_node *this = c->old_idx.rb_node;
182 struct ubifs_old_idx *old_idx;
192 old_idx = rb_entry(this, struct ubifs_old_idx, rb);
195 if (this->rb_left == &old_idx->rb)
200 kfree(old_idx);
202 c->old_idx = RB_ROOT;
1952 * if they are split we add their lnum/offs to the old_idx tree.
2005 * record it in the old_idx tree.