[PATCH 0/2] zs_object_copy() micro-optimizations

From: Sergey Senozhatsky
Date: Tue Mar 24 2015 - 11:25:08 EST


Hello,

two small patches two micro-optimize zs_object_copy().

The first one removes unneeded kunmap_atomic/kmap_atomic of dst page,
when object that we copy belongs to two source pages.

The seconds one is also trivial -- removes branching and (a bit)
reduses the amount of work done by the function (double offsets
calculations).

Sergey Senozhatsky (2):
zsmalloc: do not remap dst page while prepare next src page
zsmalloc: micro-optimize zs_object_copy()

mm/zsmalloc.c | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)

--
2.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/