]> git.karo-electronics.de Git - linux-beck.git/commit
fs/pstore: Optimization function ramoops_init_przs
authorlong.wanglong <long.wanglong@huawei.com>
Thu, 21 May 2015 16:47:22 +0000 (09:47 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 21 May 2015 16:47:22 +0000 (09:47 -0700)
commit07239fc854ec61b3cdc400d2a50d322d39c673f6
tree55183d6636f9443e71f47b195fc574f850f1b139
parent42222c2a5d5da7fe4839491d5c44034f40761071
fs/pstore: Optimization function ramoops_init_przs

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 <long.wanglong@huawei.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c