From: Ondřej Surý Date: Wed, 10 Sep 2025 09:40:32 +0000 (+0200) Subject: chg: nil: Reduce the code duplication around getting slabheaders from slabtop X-Git-Tag: v9.21.14~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1568c1729e09043ed431e2ebd296986559f8c22;p=thirdparty%2Fbind9.git chg: nil: Reduce the code duplication around getting slabheaders from slabtop There was a lot of duplicated code around getting the first header that exists, is active, and matches the version header from the qpzonedb. Move the duplicate code into a helper function and unify the same approach for the qpcache too even though the code is much simpler there. It should come handy when top->header is something more complicated than a pointer to first slabheader. Merge branch 'ondrej/refactor-getting-the-first-slabheader-from-slabtop' into 'main' See merge request isc-projects/bind9!10953 --- f1568c1729e09043ed431e2ebd296986559f8c22