Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757865AbcCUUaU (ORCPT ); Mon, 21 Mar 2016 16:30:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53675 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757497AbcCUUaS (ORCPT ); Mon, 21 Mar 2016 16:30:18 -0400 Date: Mon, 21 Mar 2016 13:30:17 -0700 From: Andrew Morton To: Minchan Kim Cc: linux-kernel@vger.kernel.org, Sergey Senozhatsky , karam.lee@lge.com, sangseok.lee@lge.com, chan.jeong@lge.com Subject: Re: [PATCH] zram: revive swap_slot_free_notify Message-Id: <20160321133017.1e925cc45cdc9153d2623ef8@linux-foundation.org> In-Reply-To: <1458287911-24806-1-git-send-email-minchan@kernel.org> References: <1458287911-24806-1-git-send-email-minchan@kernel.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 719 Lines: 16 On Fri, 18 Mar 2016 16:58:31 +0900 Minchan Kim wrote: > "remove compressed copy from zram in-memory" > applied swap_slot_free_notify call in *end_swap_bio_read* to > remove duplicated memory between zram and memory. > > However, with introducing rw_page in zram <8c7f01025f7b> > "zram: implement rw_page operation of zram", it became void > because rw_page doesn't need bio. > > This patch restores the function for rw_page. This is a bit mysterious. What is the actual runtime effect of the patch? I assume that 8c7f01025f7b caused duplication of memory and that the only problem is additional resource consumption? If so, what are the observable effects? etcetera, please.