Re: Subject: [PATCH V7 2/4] mm: frontswap: core code

From: Seth Jennings
Date: Thu Aug 25 2011 - 09:30:01 EST


On 08/25/2011 01:05 AM, KAMEZAWA Hiroyuki wrote:
> On Tue, 23 Aug 2011 07:58:15 -0700
> Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:
>
>> From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
>> 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@xxxxxxxxxx: new static inlines resolve to no-ops if not config'd]
>> [v7: JBeulich@xxxxxxxxxx: avoid redundant shifts/divides for *_bit lib calls]
>> [v6: rebase to 3.1-rc1]
>> [v6: lliubbo@xxxxxxxxx: fix null pointer deref if vzalloc fails]
>> [v6: konrad.wilk@xxxxxxxxx: various checks and code clarifications/comments]
>> [v5: no change from v4]
>> [v4: rebase to 2.6.39]
>> Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
>> Reviewed-by: Konrad Wilk <konrad.wilk@xxxxxxxxxx>
>> Acked-by: Jan Beulich <JBeulich@xxxxxxxxxx>
>> Acked-by: Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx>
>> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
>> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
>> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
>> Cc: Nitin Gupta <ngupta@xxxxxxxxxx>
>> Cc: Matthew Wilcox <matthew@xxxxxx>
>> Cc: Chris Mason <chris.mason@xxxxxxxxxx>
>> Cc: Rik Riel <riel@xxxxxxxxxx>
>> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>>
<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@xxxxxxxxxx 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@xxxxxxxxx";> email@xxxxxxxxx </a>

--
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/