11 Dec 06:40
[PATCH] Reduce nr of ptr derefs in fs/jffs2/summary.c
Jesper Juhl <jesper.juhl <at> gmail.com>
2005-12-11 05:40:48 GMT
2005-12-11 05:40:48 GMT
Here's a small patch to reduce the nr. of pointer dereferences in
fs/jffs2/summary.c
Benefits:
- micro speed optimization due to fewer pointer derefs
- generated code is slightly smaller
- better readability
Please consider applying...
Signed-off-by: Jesper Juhl <jesper.juhl <at> gmail.com>
---
fs/jffs2/summary.c | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
orig:
text data bss dec hex filename
5033 0 0 5033 13a9 fs/jffs2/summary.o
patched:
text data bss dec hex filename
4935 0 0 4935 1347 fs/jffs2/summary.o
--- linux-2.6.15-rc5-git1-orig/fs/jffs2/summary.c 2005-12-04 18:48:38.000000000 +0100
+++ linux-2.6.15-rc5-git1/fs/jffs2/summary.c 2005-12-11 06:01:51.000000000 +0100
@@ -581,16 +581,17 @@ static int jffs2_sum_write_data(struct j
wpage = c->summary->sum_buf;
while (c->summary->sum_num) {
+ temp = c->summary->sum_list_head;
(Continue reading)
RSS Feed