The patch titled Subject: zswap-same-filled-pages-handling-v2 has been added to the -mm tree. Its filename is zswap-same-filled-pages-handling-v2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/zswap-same-filled-pages-handling-v2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/zswap-same-filled-pages-handling-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Srividya Desireddy <srividya.dr@xxxxxxxxxxx> Subject: zswap-same-filled-pages-handling-v2 Added memset_l instead of for loop. Signed-off-by: Srividya Desireddy <srividya.dr@xxxxxxxxxxx> Cc: Dan Streetman <ddstreet@xxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zswap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff -puN mm/zswap.c~zswap-same-filled-pages-handling-v2 mm/zswap.c --- a/mm/zswap.c~zswap-same-filled-pages-handling-v2 +++ a/mm/zswap.c @@ -984,16 +984,10 @@ static int zswap_is_page_same_filled(voi static void zswap_fill_page(void *ptr, unsigned long value) { - unsigned int pos; unsigned long *page; page = (unsigned long *)ptr; - if (value == 0) - memset(page, 0, PAGE_SIZE); - else { - for (pos = 0; pos < PAGE_SIZE / sizeof(*page); pos++) - page[pos] = value; - } + memset_l(page, value, PAGE_SIZE / sizeof(unsigned long)); } /********************************* _ Patches currently in -mm which might be from srividya.dr@xxxxxxxxxxx are zswap-same-filled-pages-handling.patch zswap-same-filled-pages-handling-v2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html