From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbcJJGzj (ORCPT ); Mon, 10 Oct 2016 02:55:39 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34811 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbcJJGzi (ORCPT ); Mon, 10 Oct 2016 02:55:38 -0400 Date: Mon, 10 Oct 2016 15:55:19 +0900 From: Sergey Senozhatsky To: Cory Pruce Cc: Nitin Gupta , "minchan@kernel.org" , "linux-kernel@vger.kernel.org" , Sergey Senozhatsky Subject: Re: Zram for FreeBSD Message-ID: <20161010065519.GB488@swordfish> References: <20161006044321.GC5458@swordfish> <3D1127B8-789C-4276-803E-49E10D2C4280@juniper.net> <20161010064404.GA488@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161010064404.GA488@swordfish> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org you'd also probably want to look at the older zsmalloc version (add compaction and migration later, if need be) https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/mm/zsmalloc.c?id=refs/tags/v4.0 it used to be simpler back then. -ss