Re: [PATCH] mm/zswap: support multiple swap devices

2014-02-25 Thread Bob Liu
On 02/25/2014 08:09 AM, Minchan Kim wrote: > = &< > > From 032297579ee407ca3aacf509b7bd4e9b553f0b34 Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Thu, 23 Jan 2014 12:02:42 +0900 > Subject: [PATCH] mm/zswap: support multiple

Re: [PATCH] mm/zswap: support multiple swap devices

2014-02-24 Thread Minchan Kim
->pool) > > - goto freetree; > > + if (!tree) { > > + pr_err("alloc failed, zswap disabled for swap type %d\n", type); > > + return; > > + } > > + > > tree->rbroot = RB_ROOT; > > spin_lock_init(&

Re: [PATCH] mm/zswap: support multiple swap devices

2014-02-24 Thread Seth Jennings
On Mon, Feb 24, 2014 at 02:13:25PM +0900, Minchan Kim wrote: > Cai Liu reporeted that now zbud pool pages counting has a problem > when multiple swap is used because it just counts only one swap > intead of all of swap so zswap cannot control writeback properly. > The result is unnecessary writebac

[PATCH] mm/zswap: support multiple swap devices

2014-02-23 Thread Minchan Kim
Cai Liu reporeted that now zbud pool pages counting has a problem when multiple swap is used because it just counts only one swap intead of all of swap so zswap cannot control writeback properly. The result is unnecessary writeback or no writeback when we should really writeback. IOW, it made zswa