From patchwork Mon Nov 19 13:48:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Lu X-Patchwork-Id: 10688677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17BDB1709 for ; Mon, 19 Nov 2018 13:48:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EE5829487 for ; Mon, 19 Nov 2018 13:48:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7ECCA29499; Mon, 19 Nov 2018 13:48:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2092129487 for ; Mon, 19 Nov 2018 13:48:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F3E4B6B1A34; Mon, 19 Nov 2018 08:48:39 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EED266B1A36; Mon, 19 Nov 2018 08:48:39 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DDD126B1A38; Mon, 19 Nov 2018 08:48:39 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id 9C9BA6B1A34 for ; Mon, 19 Nov 2018 08:48:39 -0500 (EST) Received: by mail-pl1-f197.google.com with SMTP id 34-v6so23472301plf.6 for ; Mon, 19 Nov 2018 05:48:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; bh=YhM3UaA90o5biMuAkJ9BLxk0PJUypNcaZG87/VGTnkw=; b=jNDA/cq18NqTnnm0Sns7luEXAeZtpMQHmXGidSRMXdHurKuUvMcL+0W2O0OXeBbcIk 8Da+o1yIcSAd9uIRuXvtcdlxQHSg/Ghfoa/QC1JUZB270ytw0JpDvF2HhDoxWG1bMAqF 0qM8UwAqTMmrftiN7fqLZZvk2aiDODfKOiX10Q4xRigpdtyLZyOzuk+knvnPIIlUVIVZ VbKDVj3iKOjKMRNIhSIAb1V+M0M4rPdOG+LCQjLq+xx+PXDX+/4XfCbv4MCpz3rhZtuS fTMLj91HraleMGeXW/y1ELfePHMFPLbvWNMEofZO23tmU8Hj/7tfk3pkk8vY3DiNVcD2 4rBg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: AGRZ1gJM98KiL5g2DvrK6HXZ+o2HExcXBEUM5IIxIY4FYS3CVyNQc34b oe0RJXRm59/aeWzUxQEPOFH1ReGTJjp0TuBcJOFlUTdwHH1HtRgojrh7CiK3/8blQug1ZTvTMTa 0IfUhXruNpl/SUXW9Mbl+W0KYrC5Uz3x3Tw3vzU62bsQernWooo/n8P/jgDuIaCIVQg== X-Received: by 2002:a62:f54f:: with SMTP id n76mr22980204pfh.59.1542635319282; Mon, 19 Nov 2018 05:48:39 -0800 (PST) X-Google-Smtp-Source: AJdET5cTn3pRY3BrlwBugvGDLaTT29Sgr4j2+zUF3pi2mepVP05FWh1PPcuHvRGG2d5WuUOBqO7a X-Received: by 2002:a62:f54f:: with SMTP id n76mr22980163pfh.59.1542635318662; Mon, 19 Nov 2018 05:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542635318; cv=none; d=google.com; s=arc-20160816; b=NohvS2ZTkyQXwLgVfNyxLm3ixUH3J7gcKQ6YyBj6pGUWAF7IJtgK8+rzB/7NdDKJNg 5rnD7SMvePNhNag+peXnHmhJyPmV6sIZ5Ik+GXVBB5UzAiguludxTUcHs3OmZG+oTME3 fO8R9o+SnMb0yPp4AFYlmf8Xu2Ju2nPpHu+J0gmQ8NbWjik93CLat04eGrBq2CcW/+pb sFIWLNNWOgdzOkjnRvla5BsM4JX3zu2hvtlEUrG6c2qJHWONoU894eGSYTjO7cmAOnmz DpMfsmgp1oWrDMG6qQHE+9rpwDvlYKvlMxm7GbYUHWTiYauQj0WmGn8ghbVBUf5/gvbj HhoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=YhM3UaA90o5biMuAkJ9BLxk0PJUypNcaZG87/VGTnkw=; b=C7DkX1euMj3uhgtpPMiUHwQHayvlmxxS6OlEmxTdyj6LUL07ohppZTNAj8GvuR+cnY 4SFxhVX1YlkPl5R6Gan5Q1l4QSKK8zaM1JMKLkWjke1Xt7y5UXZIu3wozECknR/8li7N ThdNmkb6lQsZRUDamRW69sViqsp+QN1JAQLkIKb5g30vaCWsjq8rfx6POzEr9hXh0jol h0K+G3GhZxFU4td1oOvdmw99V4Z0YlNZxuoKz00dtncvB0Ki3ZgpE5uTqiPerUGDF8R9 x9fRFFrVvs+XEDHGkB9zPriW5a01wAwYNNq/jilwgvzEHCWTEp1wZH02XhOsnQ/VUxAC y01w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga03.intel.com (mga03.intel.com. [134.134.136.65]) by mx.google.com with ESMTPS id v189si38253742pgb.398.2018.11.19.05.48.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 05:48:38 -0800 (PST) Received-SPF: pass (google.com: domain of aaron.lu@intel.com designates 134.134.136.65 as permitted sender) client-ip=134.134.136.65; Authentication-Results: mx.google.com; spf=pass (google.com: domain of aaron.lu@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=aaron.lu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 05:48:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,252,1539673200"; d="scan'208";a="87075891" Received: from aaronlu.sh.intel.com ([10.239.159.44]) by fmsmga007.fm.intel.com with ESMTP; 19 Nov 2018 05:48:34 -0800 From: Aaron Lu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Andrew Morton , =?utf-8?q?Pawe=C5=82_Staszews?= =?utf-8?q?ki?= , Jesper Dangaard Brouer , Eric Dumazet , Tariq Toukan , Ilias Apalodimas , Yoel Caspersen , Mel Gorman , Saeed Mahameed , Michal Hocko , Vlastimil Babka , Dave Hansen , Alexander Duyck , Ian Kumlien Subject: [PATCH RESEND 0/2] free order-0 pages through PCP in page_frag_free() and cleanup Date: Mon, 19 Nov 2018 21:48:32 +0800 Message-Id: <20181119134834.17765-1-aaron.lu@intel.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This is a resend of the two patches. Patch 1 is the same as: [PATCH v2 1/2] mm/page_alloc: free order-0 pages through PCP in page_frag_free() https://lkml.kernel.org/r/20181106052833.GC6203@intel.com With one more ack from Tariq Toukan. Patch 2 is the same as: [PATCH v3 2/2] mm/page_alloc: use a single function to free page https://lkml.kernel.org/r/20181106113149.GC24198@intel.com With some changelog rewording. Applies on top of v4.20-rc2-mmotm-2018-11-16-14-52. Aaron Lu (2): mm/page_alloc: free order-0 pages through PCP in page_frag_free() mm/page_alloc: use a single function to free page mm/page_alloc.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-)