Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp272450img; Mon, 18 Mar 2019 02:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0AYvwMUDB+0Fc9ZwEW4MkiEQ377U1z5qKVht2dKUz6KplUxv77EL4M3r75yEFHFQ8P7zX X-Received: by 2002:a63:2b82:: with SMTP id r124mr16776415pgr.214.1552902528778; Mon, 18 Mar 2019 02:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552902528; cv=none; d=google.com; s=arc-20160816; b=iUoU5vIG4HL7CveeG6lr3U8F32pt48MdE2cUJAqDWd0JoiU+iNREYOE9yLLMpPaqz1 SwlVvWl25YrukBT2Xz4rnH8FYrEXChF2SlYmoPwZChvkvGHbdkPca27I4w6bsecsoNvG x2UokNFOO2qFUS8SQG4+swedRnLBrJPsvIvhQBkEcRSpcV0dNdxx0l6CcOz58uiyc1F0 i0so7RdsaARy0p1K/fYl5VKV++JkpXnV34RdZQNHC9vmVAnPDTXMEcFaVIxkd/RfXTzv ap5XC6Dsb2A1ToDc+3acmR0v+ettttv2swrEHXeaQT7hsKbM2viM1JY4A3NkwKK5/VZx kLnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id:date :to:from:subject:content-transfer-encoding; bh=DuZE/6E4RQuviBZlBT+hgki0y+7dVOZssCNASRxLWO0=; b=kCQNrpFZ5wseP3BZ5DyG0HuxhLbzknnrVstESGxnsluqYD1tsPnzeDPFn+yOuCMq4C lXhtTIOpiu9tBlyKQdpVvMn0qVUbJNFcRUNZ8FHgvDGvGO7G5I2vl3uSpY3JV1o1TC/k xaSp6MScEf8G/isIqOuHNK6JCtAqUz3UaJrzXjt4WZyZNAPOWfiOqAyi0w8bUvcFqrz9 AA5Zk20sSMY//ngIKDRHpxzDHEDYTxHBtduWSo259JX22uTZK8MVsDXrvSHOtyw1WJqz PUrHRh7vExPebe3klk92Sgeh8aZkw3oWrzFKihmz8Qm73bbc5tAEIDD3hka/aEX4oQMf 7EDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si8701511plq.262.2019.03.18.02.48.33; Mon, 18 Mar 2019 02:48:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbfCRJrs (ORCPT + 99 others); Mon, 18 Mar 2019 05:47:48 -0400 Received: from relay.sw.ru ([185.231.240.75]:41336 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbfCRJ2B (ORCPT ); Mon, 18 Mar 2019 05:28:01 -0400 Received: from [172.16.25.169] (helo=localhost.localdomain) by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1h5oYk-00054y-Ad; Mon, 18 Mar 2019 12:27:54 +0300 Content-Transfer-Encoding: 7bit Subject: [PATCH REBASED 0/4] mm: Generalize putback functions From: Kirill Tkhai To: akpm@linux-foundation.org, daniel.m.jordan@oracle.com, mhocko@suse.com, ktkhai@virtuozzo.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Mon, 18 Mar 2019 12:27:53 +0300 Message-ID: <155290113594.31489.16711525148390601318.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (This is resending of the patchset, rebased on next-20190318). Functions putback_inactive_pages() and move_active_pages_to_lru() are almost similar, so this patchset merges them in only function. v3: Replace list_del_init() with list_del() v2.5: Update comment v2: Fix tracing. Return VM_BUG_ON() check on the old place. Improve spelling. --- Kirill Tkhai (4): mm: Move recent_rotated pages calculation to shrink_inactive_list() mm: Move nr_deactivate accounting to shrink_active_list() mm: Remove pages_to_free argument of move_active_pages_to_lru() mm: Generalize putback scan functions .../trace/postprocess/trace-vmscan-postprocess.pl | 7 + include/linux/vmstat.h | 2 include/trace/events/vmscan.h | 13 +- mm/vmscan.c | 148 +++++++------------- 4 files changed, 68 insertions(+), 102 deletions(-) -- Signed-off-by: Kirill Tkhai Reviewed-by: Daniel Jordan