> RADIX_TREE() uses the static XArray initializer. Enforce static storage > for this declaration wrapper, consistently with DEFINE_XARRAY_FLAGS() > and DEFINE_IDR(). Leave RADIX_TREE_INIT() unchanged for embedded objects. > > Normal radix-tree operations use external synchronization rather than the > embedded XArray lock, so this is declaration-contract enforcement rather > than a fix for a lockdep failure in normal radix-tree operations. > > Convert the thirteen automatic roots in the userspace tests and benchmark > to plain declarations followed by INIT_RADIX_TREE(), preserving their > allocation flags. > > Assisted-by: OpenAI Codex > Signed-off-by: Yury Norov <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=9

