lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 2 Jul 2021 15:58:02 +0300
From:   Mike Rapoport <rppt@...ux.ibm.com>
To:     Ohhoon Kwon <ohoono.kwon@...sung.com>
Cc:     david@...hat.com, akpm@...ux-foundation.org, mhocko@...e.com,
        bhe@...hat.com, ohkwon1043@...il.com, linux-mm@...ck.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3] mm: sparse: remove __section_nr() function

On Fri, Jul 02, 2021 at 06:41:29PM +0900, Ohhoon Kwon wrote:
> This series contains cleanups to remove __section_nr().
> 
> When CONFIG_SPARSEMEM_EXTREME is enabled, __section_nr() could be
> costly since it iterates all section roots to check if the given
> mem_section is in its range.
> 
> On the other hand, __nr_to_section which converts section_nr to
> mem_section can be done in O(1).
> 
> The only users of __section_nr() was section_mark_present() and
> find_memory_block().
> 
> PATCH 1 & 2 changes both functions to use section_nr instead of
> mem_section.
> PATCH 3 finally removes __section_nr() function.
> 
> More details can be found in each changelogs.
> 
> Ohhoon Kwon (3):
>   mm: sparse: pass section_nr to section_mark_present
>   mm: sparse: pass section_nr to find_memory_block
>   mm: sparse: remove __section_nr() function
> 
>  .../platforms/pseries/hotplug-memory.c        |  4 +--
>  drivers/base/memory.c                         |  4 +--
>  include/linux/memory.h                        |  2 +-
>  include/linux/mmzone.h                        |  1 -
>  mm/sparse.c                                   | 35 +++----------------
>  5 files changed, 9 insertions(+), 37 deletions(-)
> 
> -- 
> 2.17.1
 
For the series:

Acked-by: Mike Rapoport <rppt@...ux.ibm.com>

-- 
Sincerely yours,
Mike.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ