Re: [REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-08-13 Thread Andrew Morton
On Thu, 13 Aug 2015 09:55:25 +0900 Simon Horman wrote: > On Tue, Jul 28, 2015 at 12:46:42PM +0800, Minfei Huang wrote: > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify the code logic to do the image->control_page assignment > > directly in the loop,

Re: [REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-08-13 Thread Simon Horman
On Thu, Aug 13, 2015 at 01:53:45PM +0800, Baoquan He wrote: > On 08/13/15 at 09:55am, Simon Horman wrote: > > On Tue, Jul 28, 2015 at 12:46:42PM +0800, Minfei Huang wrote: > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > > we can simplify the code logic to do the im

Re: [REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-08-12 Thread Baoquan He
On 08/13/15 at 09:55am, Simon Horman wrote: > On Tue, Jul 28, 2015 at 12:46:42PM +0800, Minfei Huang wrote: > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify the code logic to do the image->control_page assignment > > directly in the loop, and remove th

Re: [REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-08-12 Thread Simon Horman
On Tue, Jul 28, 2015 at 12:46:42PM +0800, Minfei Huang wrote: > Transforming PFN(Page Frame Number) to struct page is never failure, so > we can simplify the code logic to do the image->control_page assignment > directly in the loop, and remove the unnecessary conditional judgement. > > Signed-off

[REPOST PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Minfei Huang
Transforming PFN(Page Frame Number) to struct page is never failure, so we can simplify the code logic to do the image->control_page assignment directly in the loop, and remove the unnecessary conditional judgement. Signed-off-by: Minfei Huang Acked-by: Dave Young Acked-by: Vivek Goyal --- ker

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Minfei Huang
On 07/28/15 at 01:30pm, Simon Horman wrote: > On Mon, Jul 27, 2015 at 09:44:53AM -0400, Vivek Goyal wrote: > > On Sat, Jun 06, 2015 at 02:14:12PM +0800, Minfei Huang wrote: > > > From: Minfei Huang > > > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > > we can si

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Simon Horman
On Mon, Jul 27, 2015 at 09:44:53AM -0400, Vivek Goyal wrote: > On Sat, Jun 06, 2015 at 02:14:12PM +0800, Minfei Huang wrote: > > From: Minfei Huang > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify the code logic to do the image->control_page assi

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-27 Thread Vivek Goyal
On Sat, Jun 06, 2015 at 02:14:12PM +0800, Minfei Huang wrote: > From: Minfei Huang > > Transforming PFN(Page Frame Number) to struct page is never failure, so > we can simplify the code logic to do the image->control_page assignment > directly in the loop, and remove the unnecessary conditional j

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-07-25 Thread Minfei Huang
Hi, Vivek. Since Dave acked this patch, Could you help to merge it? Thanks Minfei On 06/15/15 at 05:28pm, Dave Young wrote: > On 06/06/15 at 02:14pm, Minfei Huang wrote: > > From: Minfei Huang > > > > Transforming PFN(Page Frame Number) to struct page is never failure, so > > we can simplify t

Re: [PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-06-15 Thread Dave Young
On 06/06/15 at 02:14pm, Minfei Huang wrote: > From: Minfei Huang > > Transforming PFN(Page Frame Number) to struct page is never failure, so > we can simplify the code logic to do the image->control_page assignment > directly in the loop, and remove the unnecessary conditional judgement. > > Sig

[PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-06-05 Thread Minfei Huang
From: Minfei Huang Transforming PFN(Page Frame Number) to struct page is never failure, so we can simplify the code logic to do the image->control_page assignment directly in the loop, and remove the unnecessary conditional judgement. Signed-off-by: Minfei Huang --- kernel/kexec.c | 3 +-- 1 f