Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5750756ybg; Tue, 22 Oct 2019 07:52:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN7Nyva3vViHwxg7jWdBZuh5x4Zmp7tHMAWgVxdvLhPqj0tZcnEizXbnNeZ4JYyryKQ4pP X-Received: by 2002:a50:ac3c:: with SMTP id v57mr2384711edc.300.1571755945601; Tue, 22 Oct 2019 07:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571755945; cv=none; d=google.com; s=arc-20160816; b=d2toJIOQJ6c+cYx3hxubNeTFNJR7k1cNYlBD4yrSOahu2OScwL/9PczqLM0W+AbC4Y JD7soZXfZio3+suSZ0sNsgBrwbNw1q6Hdq31wOQX7fSBrAubPLaz8aPusPRIW4tbhisV 8ecJ3T9rhFyo8MqO7oB1aDEzTAXRKTyJ435j+CVJ9pCaDtjhhgAeIJGlA3Dy4budBB21 MBxVNMwzJ3zaFH6X2Ow455FjOZWbE8hkT0YkThjEuUxrlpluPti1+xUwEYTxCJyTQ5xg eQ8JR2Z4CMjt34dTqVTPisAeoK0vSKHx7zTHV7pJEfS9m0JX95J5QdT2TVha3m4YPiMs TJjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UutYteqTWkPmD48f0jNhpK+dvRJrMgtVJxTJWvlNPEM=; b=fiB+m0nnsQGwpXqnmre5Q/fIgucZdB76fIT+X0iM8/5+GCzryyTRM2Q1wlFe0Cn+3B J0XYzqxXDsLlS8P88rplp6fTo8JBGRHkzc5gtr5ZHCvg80FvQ862ugP1OLazHSrrJhI4 CH5TJ2SZPVqE9SmVWDFGGdhSq+l25+a/VEdsmlbSvg37H/fbGwfMAuO8AClda4qb5zu5 7vwxkeLbTHUwoL7AeJDCcH6ZaDgnkzHMur2Z+1KnHwL+Sw7FC3OrHZ7Xpfg6qnndU+Jx 6KgnJbyPHTm3y/meIVkUxcxtAk4df+fJNqaIGkJtiAH4R8F7KzM3ourrZSOHriiJ9lqY zAdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=vlBYE+fW; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si11403536edc.227.2019.10.22.07.52.00; Tue, 22 Oct 2019 07:52:25 -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; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=vlBYE+fW; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731361AbfJVOsP (ORCPT + 99 others); Tue, 22 Oct 2019 10:48:15 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:36290 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbfJVOsO (ORCPT ); Tue, 22 Oct 2019 10:48:14 -0400 Received: by mail-qk1-f193.google.com with SMTP id y189so16498036qkc.3 for ; Tue, 22 Oct 2019 07:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UutYteqTWkPmD48f0jNhpK+dvRJrMgtVJxTJWvlNPEM=; b=vlBYE+fWCY++BNYbapfKjvbzLNzuEMvv1UXCfI27y9wdHR3b89oXrVKLA8ud68Zs6J LqUbEsGJanuyERO6T1Dr7kUcpK/YSTQME+H9oYcAKQK8vlmOLbgPDHBVeq26VXQ5aBSV PLA0dfTYtghWw83ibT/hu+u8uuDVMlHbIetO16tszI+oUcbVZebbbpEmbKXBydiHkwhh SpNoB7b3+RMat88O1vqGmMpg8SHgx/hJBUHzbR1h4NcFWBtScqVSQK29G5nTaq5xJENX iE9rdbBtv3zaV6M4uLKi7GapV5UGPecdZrvbJlyMr47HQqY5Z6EgsWs3ROMRTwlkHnVY HQaw== 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:mime-version :content-transfer-encoding; bh=UutYteqTWkPmD48f0jNhpK+dvRJrMgtVJxTJWvlNPEM=; b=jqQLGlqiDcCe0BkEzPVhw1UIrV0Hj2lAAb+ZKtfhgke98JcA3ex9iOsAUOG1bxND8R DgooumFOUanw7uErd86D1TiBwRwG5CBv6hNrhiwjeeiuAvAyCGgoS3JBtmCq2Sx8vgP3 UFOQxWnwtzSBb2zdN6uXHX/I/PHgROZ5hyn/LYsiDPPc3XRf4JIDqdFiMFwg1Fs1Wube nFBjgltlLVqQAYXAFpLGo4P3h1nktRuz4e6xKVTx7fEArxZn2hMk9KooXVuolrrma507 nuBMcjwuWLFi9qCnNWqgtHuXwotcCK5V0JsxVW2QN326vsxAufP73IZECV4Kp1+w+NOA 8TNQ== X-Gm-Message-State: APjAAAX2JBgDd3cO9JAARwZqrZAVuvQn8F/Fg8THrrkhF6ggKmzXPwGs 2VgPElJxb89G2ypwQIQrCZayZw== X-Received: by 2002:a37:4bd3:: with SMTP id y202mr3461923qka.390.1571755693554; Tue, 22 Oct 2019 07:48:13 -0700 (PDT) Received: from localhost ([2620:10d:c091:500::3:10ad]) by smtp.gmail.com with ESMTPSA id u27sm9321604qtj.5.2019.10.22.07.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 07:48:12 -0700 (PDT) From: Johannes Weiner To: Andrew Morton Cc: Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH 0/8]: mm: vmscan: cgroup-related cleanups Date: Tue, 22 Oct 2019 10:47:55 -0400 Message-Id: <20191022144803.302233-1-hannes@cmpxchg.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here are 8 patches that clean up the reclaim code's interaction with cgroups a bit. They're not supposed to change any behavior, just make the implementation easier to understand and work with. My apologies in advance for 5/8, which changes the indentation of shrink_node() and so results in a terrible diff. The rest of the series should be straight-forward. include/linux/memcontrol.h | 32 ++-- include/linux/mmzone.h | 26 +-- mm/memcontrol.c | 12 +- mm/page_alloc.c | 2 +- mm/slab.h | 4 +- mm/vmscan.c | 386 +++++++++++++++++++------------------------ mm/workingset.c | 8 +- 7 files changed, 216 insertions(+), 254 deletions(-)