Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664855

Re: [PATCH] base/memory: pass the base_section in add_memory_block

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] base/memory: pass the base_section in add_memory_block
Date 2017-06-13 15:50 +0200
Message-ID <tRUmJ-ap-11@gated-at.bofh.it> (permalink)
References <tPEYO-4kE-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 07, 2017 at 04:52:12PM +0800, Wei Yang wrote:
> The second parameter of init_memory_block() is used to calculate the
> start_section_nr of this block, which means any section in the same block
> would get the same start_section_nr.
> 
> This patch passes the base_section to init_memory_block(), so that to
> reduce a local variable and a check in every loop.
> 
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---
>  drivers/base/memory.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Can you resend this and cc: linux-mm?  I think the developers there need
to review this.

thanks,

greg k-h

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] base/memory: pass the base_section in add_memory_block Greg KH <gregkh@linuxfoundation.org> - 2017-06-13 15:50 +0200

csiph-web