Re: [PATCH v1 2/5] mm: add full variable in swap_info_struct

2014-09-24 Thread Minchan Kim
On Tue, Sep 23, 2014 at 10:53:05PM -0400, Dan Streetman wrote: > On Sun, Sep 21, 2014 at 8:03 PM, Minchan Kim wrote: > > Now, swap leans on !p->highest_bit to indicate a swap is full. > > It works well for normal swap because every slot on swap device > > is used up when the swap is full but in ca

Re: [PATCH v1 2/5] mm: add full variable in swap_info_struct

2014-09-23 Thread Dan Streetman
On Sun, Sep 21, 2014 at 8:03 PM, Minchan Kim wrote: > Now, swap leans on !p->highest_bit to indicate a swap is full. > It works well for normal swap because every slot on swap device > is used up when the swap is full but in case of zram, swap sees > still many empty slot although backed device(ie

Re: [PATCH v1 2/5] mm: add full variable in swap_info_struct

2014-09-22 Thread Minchan Kim
On Mon, Sep 22, 2014 at 01:45:22PM -0700, Andrew Morton wrote: > On Mon, 22 Sep 2014 09:03:08 +0900 Minchan Kim wrote: > > > Now, swap leans on !p->highest_bit to indicate a swap is full. > > It works well for normal swap because every slot on swap device > > is used up when the swap is full but

Re: [PATCH v1 2/5] mm: add full variable in swap_info_struct

2014-09-22 Thread Andrew Morton
On Mon, 22 Sep 2014 09:03:08 +0900 Minchan Kim wrote: > Now, swap leans on !p->highest_bit to indicate a swap is full. > It works well for normal swap because every slot on swap device > is used up when the swap is full but in case of zram, swap sees > still many empty slot although backed device

[PATCH v1 2/5] mm: add full variable in swap_info_struct

2014-09-21 Thread Minchan Kim
Now, swap leans on !p->highest_bit to indicate a swap is full. It works well for normal swap because every slot on swap device is used up when the swap is full but in case of zram, swap sees still many empty slot although backed device(ie, zram) is full since zram's limit is over so that it could m