Re: [PATCH] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread long.wanglong
On 2015/3/18 1:39, Kees Cook wrote: > On Tue, Mar 17, 2015 at 2:31 AM, Wang Long wrote: >> The value of cxt->record_size does not change in the loop, >> so this patch optimize the assign statement by moving >> it to outer. >> >> Signed-off-by: Wang Long >> --- >> fs/pstore/ram.c | 4 ++-- >> 1 f

Re: [PATCH] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread Kees Cook
On Tue, Mar 17, 2015 at 2:31 AM, Wang Long wrote: > The value of cxt->record_size does not change in the loop, > so this patch optimize the assign statement by moving > it to outer. > > Signed-off-by: Wang Long > --- > fs/pstore/ram.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

[PATCH] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread Wang Long
The value of cxt->record_size does not change in the loop, so this patch optimize the assign statement by moving it to outer. Signed-off-by: Wang Long --- fs/pstore/ram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 44a549b..2105