search for: rb_insert

Displaying 1 result from an estimated 1 matches for "rb_insert".

Did you mean: _insert
2013 Nov 27
0
[PATCH] Btrfs-progs: fix the mismatch of extent buffer's space
...eb can finally be freed, so the problem is we has decrease the referene count of backrefs to zero, which ends up releasing the space occupied by the eb, and this space can be allocated again for something else(another eb or disk), usually a crash(core dump) will occur, I''ve hit a crash in rb_insert() because another eb re-use the space while the original one is floating around. We should do the same thing as the kernel code does, it''s necessary to initialize @refs to 1 instead of 2, this helps us get rid of the above problem. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> ---...