From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751882AbdBOHNz (ORCPT ); Wed, 15 Feb 2017 02:13:55 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:44414 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbdBOHNx (ORCPT ); Wed, 15 Feb 2017 02:13:53 -0500 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 165.244.249.26 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Wed, 15 Feb 2017 16:13:44 +0900 From: Minchan Kim To: Yisheng Xie CC: , , , , , Subject: Re: [RFC] mm/zsmalloc: remove redundant SetPagePrivate2 in create_page_chain Message-ID: <20170215071344.GA23887@bbox> References: <1487076509-49270-1-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 In-Reply-To: <1487076509-49270-1-git-send-email-xieyisheng1@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/02/15 16:13:45, Serialize by Router on LGEKRMHUB02/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/02/15 16:13:45, Serialize complete at 2017/02/15 16:13:45 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2017 at 08:48:29PM +0800, Yisheng Xie wrote: > We had used page->lru to link the component pages (except the first > page) of a zspage, and used INIT_LIST_HEAD(&page->lru) to init it. > Therefore, to get the last page's next page, which is NULL, we had to > use page flag PG_Private_2 to identify it. > > But now, we use page->freelist to link all of the pages in zspage and > init the page->freelist as NULL for last page, so no need to use > PG_Private_2 anymore. > > This patch is to remove redundant SetPagePrivate2 in create_page_chain > and ClearPagePrivate2 in reset_page(). Maybe can save few cycles for > migration of zsmalloc page :) > > Signed-off-by: Yisheng Xie Acked-by: Minchan Kim Thanks, Yisheng!