diff options
author | Sangwoo Park <sangwoo2.park@lge.com> | 2017-05-03 14:55:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 15:52:11 -0700 |
commit | f0fe9984656604ea8effd5ff82709ff8ce1f954b (patch) | |
tree | 8b2998a6041eb33b592ed10abd551a7a29fc43b6 /fs/iomap.c | |
parent | 302128dce142d780417aa548bfd7ef4dfb89fa80 (diff) | |
download | op-kernel-dev-f0fe9984656604ea8effd5ff82709ff8ce1f954b.zip op-kernel-dev-f0fe9984656604ea8effd5ff82709ff8ce1f954b.tar.gz |
zram: reduce load operation in page_same_filled
In page_same_filled function, all elements in the page is compared with
next index value. The current comparison routine compares the (i)th and
(i+1)th values of the page.
In this case, two load operaions occur for each comparison. But if we
store first value of the page stores at 'val' variable and using it to
compare with others, the load opearation is reduced. It reduce load
operation per page by up to 64times.
Link: http://lkml.kernel.org/r/1488428104-7257-1-git-send-email-sangwoo2.park@lge.com
Signed-off-by: Sangwoo Park <sangwoo2.park@lge.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/iomap.c')
0 files changed, 0 insertions, 0 deletions