On Tue, Apr 19, 2022 at 06:30:02PM +0300, Kirill A. Shutemov wrote: > Hm. Dave was worried about having copies of _find_next_bit() and > __bitmap_*() inside compressed/. That's fine. > How do we rectify code duplication and making decompresser self-contained? Also fine - as long as the decompressor and kernel-proper are independent. > Do we care about multiple copies of the same code in the kernel? The copied versions in the decompressor should be simply sufficient for its use. And there shouldn't be that much of duplication. Note that we're using the same strategy with perf tool - it does copy kernel facilities when it needs them. > Do we care about keeping them in sync? Nope - as long as they're sufficient for the decompressor. My expectation here is that the decompressor won't need too many facilities. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette