]> git.baikalelectronics.ru Git - kernel.git/commit
lib/radix-tree: remove unused argument of insert_entries
authorwuchi <wuchi.zero@gmail.com>
Sat, 25 Jun 2022 13:53:24 +0000 (21:53 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:38 +0000 (17:31 -0700)
commitcc3c840d3fdece92d7dbe4846fdd6a3f3e3eadf9
treebae10768a5ff35e64d7f4247ef1bb9690b81c2d8
parent773ac7caabcbbae504658d302e2d268817b2147d
lib/radix-tree: remove unused argument of insert_entries

insert_entries() doesn't use the 'bool replace' argument, and the function
is only used locally, remove the argument.

The historical context of the unused argument is as follow:

2: commit <bae41c65d87606> (radix tree: Remove multiorder support)
  Remove the code related to macro CONFIG_RADIX_TREE_MULTIORDER
to convert to the xArray.
  Without the macro, there is no need to retain the argument.

1: commit <aa4502687f3ce2> (radix-tree: add radix_tree_join)
  Add insert_entries(..., bool replace) function, depending on the
macro CONFIG_RADIX_TREE_MULTIORDER definition, the implementation
is different. Notice that the implementation without the macro doesn't
use the argument.

[Matthew Wilcox: add historical context for argument]

Link: https://lkml.kernel.org/r/20220625135324.72574-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/radix-tree.c