[v2,0/2] Some small improvements for memblock.

Message ID 20230129090034.12310-1-zhangpeng.00@bytedance.com
Headers
Series Some small improvements for memblock. |

Message

Peng Zhang Jan. 29, 2023, 9 a.m. UTC
  Some small optimizations for memblock.

Changes since v1:
- Delete the second patch that complicate code
- Adjust the code of memblock_merge_regions()

Peng Zhang (2):
  memblock: Make a boundary tighter in memblock_add_range().
  memblock: Avoid useless checks in memblock_merge_regions().

 mm/memblock.c | 41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)
  

Comments

Mike Rapoport Jan. 31, 2023, 2:12 p.m. UTC | #1
On Sun, Jan 29, 2023 at 05:00:32PM +0800, Peng Zhang wrote:
> Some small optimizations for memblock.
> 
> Changes since v1:
> - Delete the second patch that complicate code
> - Adjust the code of memblock_merge_regions()
> 
> Peng Zhang (2):
>   memblock: Make a boundary tighter in memblock_add_range().
>   memblock: Avoid useless checks in memblock_merge_regions().
> 
>  mm/memblock.c | 41 +++++++++++++++++++++++++++--------------
>  1 file changed, 27 insertions(+), 14 deletions(-)

Applied, thanks!
 
> -- 
> 2.20.1
>