Hi, Relocation caches extent backrefs in an rbtree (the 'backref cache'). The following patches move the backref cache code out of relocation.c and into it's own file. We then do a straight-forward cleanup the main backref cache function, build_backref_tree(). No functionality is changed in these patches.
These patches are part of a larger series I have, which speeds up qgroup accounting by using the same backref cache facility. That series is not quite ready, however I wanted to see about getting these cleanup patches upstreamed as they are nicely self contained and benefit the readability of the code. All feedback is appreciated. --Mark