From patchwork Tue Feb 12 07:09:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot via dri-devel X-Patchwork-Id: 10812001 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 D68E31399 for ; Thu, 14 Feb 2019 08:23:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C72732D8BD for ; Thu, 14 Feb 2019 08:23:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB69B2D8C6; Thu, 14 Feb 2019 08:23:12 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C8642D8BD for ; Thu, 14 Feb 2019 08:23:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7746E89E15; Thu, 14 Feb 2019 08:23:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id F28876E003 for ; Tue, 12 Feb 2019 07:10:12 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id r14so843633pls.12 for ; Mon, 11 Feb 2019 23:10:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8pLjLesSuhLAfDTWo9wzo0tP7B1KRUiRqW/Fsiv6QzE=; b=ExWepMsrPTfZlhdBawAiXFlhqDuPsA8zInSTzk2q4o4Jrm19ofryaRvNM5LrqGbIvB D32ObiS7EkN57N/pFMKZjyZpd+r8DxmjqdJME6KYbssM/K85cqGjkdzgkek4QRPcJcMH nDieOUYsZIFOpIHfADfMy8Cmf4+q4xPhOnB6vLZc56vYva2jOUBDg/ypxEHxTfwF294M /1ZiEMhsvHRi2EeROrDiBftpFt2mB/BBmLVzM3B3eaU0i0V5Da7LGXmdmEoO2l9qmc1Y iYwqJd+guguyPM765n3UYUw20hkDRsG8uy5r9r91njCg+b+zEnsKw9/fhPZgPpO8zXEp gWTA== X-Gm-Message-State: AHQUAuYLApEkoQZ8QOyQum2BC6f8gclpWvjomFZIoqcUNSwI33/Vnbb8 os2GlIA2tsD197c7QjBsdQs= X-Google-Smtp-Source: AHgI3IZ2O6B597s7/LojJ7S0vhhu9wPMFlwm2YxMjgFpO/pDNLeXJrpzcXRcBjM2pimzCH5j1gYBvw== X-Received: by 2002:a17:902:346:: with SMTP id 64mr2556030pld.337.1549955412543; Mon, 11 Feb 2019 23:10:12 -0800 (PST) Received: from localhost ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id g2sm15079293pfi.95.2019.02.11.23.10.11 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 11 Feb 2019 23:10:12 -0800 (PST) X-Google-Original-From: Jing Xia To: labbott@redhat.com, sumit.semwal@linaro.org, gregkh@linuxfoundation.org, arve@android.com, tkjos@android.com, maco@android.com, joel@joelfernandes.org, christian@brauner.io, puck.chen@hisilicon.com Subject: [PATCH] staging: android: ion: Use low_order_gfp_flags for smaller allocations Date: Tue, 12 Feb 2019 15:09:26 +0800 Message-Id: <1549955366-19930-1-git-send-email-jing.xia@unisoc.com> X-Mailer: git-send-email 1.9.1 X-Mailman-Approved-At: Thu, 14 Feb 2019 08:22:46 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8pLjLesSuhLAfDTWo9wzo0tP7B1KRUiRqW/Fsiv6QzE=; b=Srkq0XQgomiaSMWAcvhv+jEohHEg5wCq0NPhyPe9hJpYCvequGD74s5ZbZPg2ho1DP Z7veh55aiIY7eVkJF0FTjNdzi3odNJE9zeQCfiTXCCVTIg0eDl2CUpca5VMjrQrLKt3M HSISYKGx9/rvJrj2VZNjX/DthTKcSiuroRcR/pUfMW8WXTKhJ57gBitKKbt0gl6CtcP2 gyZzkbnsHKDuhSOOkXzhzOFxoKFbi6caGcGOPhnaN9bvWPwBvR+geSiJPFUkgUpgwoRp YARlAiSpDAwhCEtnlig3yE5E8WcscHB1Lw4z5DIfK54rfffmOV4AW9d+INA7iHlGngyR xlgw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jing Xia via dri-devel From: kernel test robot via dri-devel Reply-To: Jing Xia Cc: devel@driverdev.osuosl.org, zhaoyang.huang@unisoc.com, yuming.han@unisoc.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, orson.zhai@unisoc.com, jing.xia.mail@gmail.com, wenan.hu@unisoc.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP gfp_flags is always set high_order_gfp_flags even if allocations of order 0 are made.But for smaller allocations, the system should be able to reclaim some memory. Signed-off-by: Jing Xia Reviewed-by: Yuming Han Reviewed-by: Zhaoyang Huang Reviewed-by: Orson Zhai --- drivers/staging/android/ion/ion_system_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 0383f75..20f2103 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -223,10 +223,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools) static int ion_system_heap_create_pools(struct ion_page_pool **pools) { int i; - gfp_t gfp_flags = low_order_gfp_flags; for (i = 0; i < NUM_ORDERS; i++) { struct ion_page_pool *pool; + gfp_t gfp_flags = low_order_gfp_flags; if (orders[i] > 4) gfp_flags = high_order_gfp_flags;