Re: [PATCH v2 4/7] rbtree, perf: Use new rbtree helpers

2021-01-25 Thread Tejun Heo
On Mon, Jan 25, 2021 at 04:09:57PM +0100, Peter Zijlstra wrote: > Reduce rbtree boiler plate by using the new helpers. > > One noteworthy change is unification of the various (partial) compare > functions. We construct a subtree match by forcing the sub-order to > always match, see __group_cmp().

[PATCH v2 4/7] rbtree, perf: Use new rbtree helpers

2021-01-25 Thread Peter Zijlstra
Reduce rbtree boiler plate by using the new helpers. One noteworthy change is unification of the various (partial) compare functions. We construct a subtree match by forcing the sub-order to always match, see __group_cmp(). Due to 'const' we had to touch cgroup_id(). Cc: Tejun Heo