How you tested this patch(8c7f010)

From: Zhizhou Tian
Date: Wed Jan 27 2016 - 02:37:53 EST


hi, Karam:
I back ported "zram: implement rw_page operation of zram"(8c7f010)
to linux3.10 on Spreadtrum tshark board.
I test this patch with following code:
mm/page_io.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/mm/page_io.c b/mm/page_io.c
index 4e1c1c8..1556fc4 100644
--- a/mm/page_io.c
+++ b/mm/page_io.c
@@ -232,6 +232,7 @@ bad_bmap:
int swap_writepage(struct page *page, struct writeback_control *wbc)
{
int ret = 0;
+ ktime_t stime, etime;

if (try_to_free_swap(page)) {
unlock_page(page);
@@ -243,7 +244,12 @@ int swap_writepage(struct page *page, struct
writeback_control *wbc)
end_page_writeback(page);
goto out;
}
+ stime = ktime_get();
ret = __swap_writepage(page, wbc, end_swap_bio_write);
+ etime = ktime_get();
+
+ pr_err("zhizhou.tian: execute swap time with page_io : %lld nsec.\n",
+ etime.tv64 - stime.tv64);
out:
return ret;
}

But I am not sure the result means something.
Can you share your method?
thanks;)