Re: [PATCH] zram: update zram to use zpool

2016-06-20 Thread Minchan Kim
On Fri, Jun 17, 2016 at 10:30:58AM +0200, Vitaly Wool wrote: > Hi Minchan, > > On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: > >> Change zram to use the zpool api instead of directly using zsmalloc. > >>

Re: [PATCH] zram: update zram to use zpool

2016-06-20 Thread Minchan Kim
On Fri, Jun 17, 2016 at 10:30:58AM +0200, Vitaly Wool wrote: > Hi Minchan, > > On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: > >> Change zram to use the zpool api instead of directly using zsmalloc. > >> The zpool api

Re: [PATCH] zram: update zram to use zpool

2016-06-17 Thread Austin S. Hemmelgarn
On 2016-06-17 04:30, Vitaly Wool wrote: Hi Minchan, On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: Change zram to use the zpool api instead of directly using zsmalloc. The zpool api doesn't have

Re: [PATCH] zram: update zram to use zpool

2016-06-17 Thread Austin S. Hemmelgarn
On 2016-06-17 04:30, Vitaly Wool wrote: Hi Minchan, On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: Change zram to use the zpool api instead of directly using zsmalloc. The zpool api doesn't have zs_compact() and

Re: [PATCH] zram: update zram to use zpool

2016-06-17 Thread Vitaly Wool
Hi Minchan, On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: >> Change zram to use the zpool api instead of directly using zsmalloc. >> The zpool api doesn't have zs_compact() and zs_pool_stats() functions. >>

Re: [PATCH] zram: update zram to use zpool

2016-06-17 Thread Vitaly Wool
Hi Minchan, On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: >> Change zram to use the zpool api instead of directly using zsmalloc. >> The zpool api doesn't have zs_compact() and zs_pool_stats() functions. >> I did the following

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread Minchan Kim
On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: > Change zram to use the zpool api instead of directly using zsmalloc. > The zpool api doesn't have zs_compact() and zs_pool_stats() functions. > I did the following two things to fix it. > 1) I replace zs_compact() with zpool_shrink(),

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread Minchan Kim
On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: > Change zram to use the zpool api instead of directly using zsmalloc. > The zpool api doesn't have zs_compact() and zs_pool_stats() functions. > I did the following two things to fix it. > 1) I replace zs_compact() with zpool_shrink(),

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread kbuild test robot
Hi, [auto build test WARNING on next-20160615] [cannot apply to v4.7-rc3 v4.7-rc2 v4.7-rc1 v4.7-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread kbuild test robot
Hi, [auto build test WARNING on next-20160615] [cannot apply to v4.7-rc3 v4.7-rc2 v4.7-rc1 v4.7-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread Dan Streetman
On Wed, Jun 15, 2016 at 10:42 AM, Geliang Tang wrote: > Change zram to use the zpool api instead of directly using zsmalloc. > The zpool api doesn't have zs_compact() and zs_pool_stats() functions. > I did the following two things to fix it. > 1) I replace zs_compact() with

Re: [PATCH] zram: update zram to use zpool

2016-06-15 Thread Dan Streetman
On Wed, Jun 15, 2016 at 10:42 AM, Geliang Tang wrote: > Change zram to use the zpool api instead of directly using zsmalloc. > The zpool api doesn't have zs_compact() and zs_pool_stats() functions. > I did the following two things to fix it. > 1) I replace zs_compact() with zpool_shrink(), use

[PATCH] zram: update zram to use zpool

2016-06-15 Thread Geliang Tang
Change zram to use the zpool api instead of directly using zsmalloc. The zpool api doesn't have zs_compact() and zs_pool_stats() functions. I did the following two things to fix it. 1) I replace zs_compact() with zpool_shrink(), use zpool_shrink() to call zs_compact() in zsmalloc. 2) The

[PATCH] zram: update zram to use zpool

2016-06-15 Thread Geliang Tang
Change zram to use the zpool api instead of directly using zsmalloc. The zpool api doesn't have zs_compact() and zs_pool_stats() functions. I did the following two things to fix it. 1) I replace zs_compact() with zpool_shrink(), use zpool_shrink() to call zs_compact() in zsmalloc. 2) The