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

2015-05-04 Thread long.wanglong
On 2015/3/19 4:11, Kees Cook wrote: > On Tue, Mar 17, 2015 at 6:41 PM, Wang Long wrote: >> The value of cxt->record_size does not change in the loop, >> so this patch optimize the assign statement by dropping >> sz entirely and using cxt->record_size in its place. >> >> Signed-off-by: Wang Long >

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

2015-03-18 Thread Kees Cook
On Tue, Mar 17, 2015 at 6:41 PM, Wang Long wrote: > The value of cxt->record_size does not change in the loop, > so this patch optimize the assign statement by dropping > sz entirely and using cxt->record_size in its place. > > Signed-off-by: Wang Long Thanks! Acked-by: Kees Cook -Kees > ---

[PATCH v2] 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 dropping sz entirely and using cxt->record_size in its place. Signed-off-by: Wang Long --- fs/pstore/ram.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/psto