From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750979AbdEPBLF (ORCPT ); Mon, 15 May 2017 21:11:05 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:33056 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750896AbdEPBLD (ORCPT ); Mon, 15 May 2017 21:11:03 -0400 Date: Tue, 16 May 2017 10:11:03 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, Joonsoo Kim , Sergey Senozhatsky , kernel-team Subject: Re: [PATCH 1/2] zram: count same page write as page_stored Message-ID: <20170516011103.GA10262@jagdpanzerIV.localdomain> References: <1494834068-27004-1-git-send-email-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494834068-27004-1-git-send-email-minchan@kernel.org> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (05/15/17 16:41), Minchan Kim wrote: > Regardless of whether it is same page or not, it's surely write > and stored to zram so we should increase pages_stored stat. > Otherwise, user can see zero value via mm_stats although he > writes a lot of pages to zram. > > Signed-off-by: Minchan Kim Reviewed-by: Sergey Senozhatsky -ss