mbox series

[v2,0/2] Following cleanup after introduce mas_wr_store_type()

Message ID 20241017015809.23392-1-richard.weiyang@gmail.com (mailing list archive)
Headers show
Series Following cleanup after introduce mas_wr_store_type() | expand

Message

Wei Yang Oct. 17, 2024, 1:58 a.m. UTC
Here is two cleanup after introduction of mas_wr_store_type().                                                                                                                                                
                                                                                                                                                                                                              
Patch 1 postpone new_end calculation when needed.                                                                                                                                                             
                                                                                                                                                                                                              
Patch 2 remove a unnecessary sanity check in mas_wr_slot_store().

v2: add a WARN_ON_ONCE() as suggested by Liam in patch 2

Wei Yang (2):
  maple_tree: calculate new_end when needed
  maple_tree: remove sanity check from mas_wr_slot_store()

 lib/maple_tree.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)