Re: Subject: [PATCH V7 2/4] mm: frontswap: core code
From: Seth Jennings <hidden>
Date: 2011-08-25 13:29:59
Also in:
lkml
On 08/25/2011 01:05 AM, KAMEZAWA Hiroyuki wrote:
On Tue, 23 Aug 2011 07:58:15 -0700 Dan Magenheimer [off-list ref] wrote:quoted
From: Dan Magenheimer <redacted> Subject: [PATCH V7 2/4] mm: frontswap: core code This second patch of four in this frontswap series provides the core code for frontswap that interfaces between the hooks in the swap subsystem and a frontswap backend via frontswap_ops. Two new files are added: mm/frontswap.c and include/linux/frontswap.h Credits: Frontswap_ops design derived from Jeremy Fitzhardinge design for tmem; sysfs code modelled after mm/ksm.c [v7: rebase to 3.0-rc3] [v7: JBeulich@novell.com: new static inlines resolve to no-ops if not config'd] [v7: JBeulich@novell.com: avoid redundant shifts/divides for *_bit lib calls] [v6: rebase to 3.1-rc1] [v6: lliubbo@gmail.com: fix null pointer deref if vzalloc fails] [v6: konrad.wilk@oracl.com: various checks and code clarifications/comments] [v5: no change from v4] [v4: rebase to 2.6.39] Signed-off-by: Dan Magenheimer <redacted> Reviewed-by: Konrad Wilk <redacted> Acked-by: Jan Beulich <redacted> Acked-by: Seth Jennings <redacted> Cc: Jeremy Fitzhardinge <redacted> Cc: Hugh Dickins <hughd@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Nitin Gupta <redacted> Cc: Matthew Wilcox <redacted> Cc: Chris Mason <redacted> Cc: Rik Riel <redacted> Cc: Andrew Morton <akpm@linux-foundation.org>
<cut>
I'm sorry if I miss codes but.... is an implementation of frontswap.ops included in this patch set ? Or how to test the work ?
The zcache driver (in drivers/staging/zcache) is the one that registers frontswap ops. You can test frontswap by enabling CONFIG_FRONTSWAP and CONFIG_ZCACHE, and putting "zcache" in the kernel boot parameters.
Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
-- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>