Re: [PATCH] notes: Fix note_tree_consolidate not to break the note_tree structure

2017-04-07 Thread Johan Herland
On Sun, Mar 26, 2017 at 3:52 AM, Mike Hommey wrote: > After a note is removed, note_tree_consolidate is called to eliminate > some useless nodes. The typical case is that if you had an int_node > with 2 PTR_TYPE_NOTEs in it, and remove one of them, then the > PTR_TYPE_INTERNAL

[PATCH] notes: Fix note_tree_consolidate not to break the note_tree structure

2017-03-25 Thread Mike Hommey
After a note is removed, note_tree_consolidate is called to eliminate some useless nodes. The typical case is that if you had an int_node with 2 PTR_TYPE_NOTEs in it, and remove one of them, then the PTR_TYPE_INTERNAL pointer in the parent tree can be replaced with the remaining PTR_TYPE_NOTE.