From patchwork Mon Sep 26 13:57:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Weiner X-Patchwork-Id: 12988719 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B5ACC07E9D for ; Mon, 26 Sep 2022 13:57:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 795638E0051; Mon, 26 Sep 2022 09:57:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 744D98E0047; Mon, 26 Sep 2022 09:57:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60D268E0051; Mon, 26 Sep 2022 09:57:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4C5328E0047 for ; Mon, 26 Sep 2022 09:57:14 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 2933DA098D for ; Mon, 26 Sep 2022 13:57:14 +0000 (UTC) X-FDA: 79954388388.19.5B448F7 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by imf05.hostedemail.com (Postfix) with ESMTP id 32F5210000E for ; Mon, 26 Sep 2022 13:57:12 +0000 (UTC) Received: by mail-qk1-f176.google.com with SMTP id x18so4100704qkn.6 for ; Mon, 26 Sep 2022 06:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=fVdpPr3f8bRd7B1cM3PWSFoALdvL6AntNtNCVepwQ2Q=; b=1d9f5RsBJxy54KAvlvlDlqBnvfh09snGIaY+6tvR2PwJb8W2/H0yK3jGriNt2JmahM gqWhIFwuh0UZ+C2UumnkbJWyJ6rDK2pKaxW3puzSUzrz7sSlzakzLN6njU4R/pYzJSIB EuFwuwSTppmZFSyDEE7eJVdFYUo9Et/OiqExxX95fifd0xJ6t8vDLsVCXFg8equ7uAz0 iNmSSjeT76pA7UVs2IMoN/Lf9vxrk+ItFKLIw2pndSHR6oVHp4yIhTQmVRrKY9KJhjkm lN8vWWAsrcoQtS+NIFmjYmsrjW0h5S5vkeXtfCCVgzk4o8/Emjt6fufYXfGeZs8kzjQ0 xPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=fVdpPr3f8bRd7B1cM3PWSFoALdvL6AntNtNCVepwQ2Q=; b=eOoUx9NxJiRA6bYgbYb4RMWE/kkKDK3rs+MDsCDGQ1DRN4UuNW55MHzB5XnyGaZYFb 7NldutgebjO1BqgXsPrTChw327h5dez/p61Oix7UyIDjjdNZKc2BAXFSbz68xzX0muDd +US5AB2JBbJ8FhY1+WRQrxxdBrDrZO3JWJWWKrkLo3biwam52gcnPQd/8CNNC2jCfeuU V2EHtyXVq5yDpzPVwH2//oLFlMK8Xvwg/Bg5qDPJViQ1uwfmIRw1fYwf+04ikWIhMjxT KbSzwJOjTMpIE4Doj1tkHBfdhUY4uiqSwwy0PfSowcfkAjuFCP6jpcwXf7B77uJRJdK5 /o0w== X-Gm-Message-State: ACrzQf1oFugjumH5zuGaR49PVi0MKcYg0YC3GoFwYg1AXwTlTP2ei7s6 vHY/cY8JEPsvFKpE1x/bEg+C2w== X-Google-Smtp-Source: AMsMyM7NXtNo0d4ehct9h5yaCEQocmeph8T7MmSmFEzl7jaAbmRg6rcj6l4GFeWB8/X7Wf56XopM6w== X-Received: by 2002:a05:620a:24d6:b0:6cd:f96a:35b with SMTP id m22-20020a05620a24d600b006cdf96a035bmr14048238qkn.471.1664200632354; Mon, 26 Sep 2022 06:57:12 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-9175-2920-760a-79fa.res6.spectrum.com. [2603:7000:c01:2716:9175:2920:760a:79fa]) by smtp.gmail.com with ESMTPSA id l27-20020a37f91b000000b006ce580c2663sm11598075qkj.35.2022.09.26.06.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 06:57:11 -0700 (PDT) From: Johannes Weiner To: Andrew Morton Cc: Shakeel Butt , Michal Hocko , Roman Gushchin , Hugh Dickins , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] memcg swap fix & cleanups Date: Mon, 26 Sep 2022 09:57:00 -0400 Message-Id: <20220926135704.400818-1-hannes@cmpxchg.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664200633; a=rsa-sha256; cv=none; b=CK+Khb6nA0p2Au6tygw2AeVrSmr9Rpu30il5G0iDv/wexI/1EV0O6hPILQGXWn2oBBZ3zc guxzHQKnQDH/2ZdM1nV9HJR3Gil4Uf55q9BkRZcq2gW+hZjFk3MV8ljJHWiu4SNww0whNM zMmlu53F1aX5wATjr4k+pNOxzSYNs1I= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=1d9f5RsB; dmarc=pass (policy=none) header.from=cmpxchg.org; spf=pass (imf05.hostedemail.com: domain of hannes@cmpxchg.org designates 209.85.222.176 as permitted sender) smtp.mailfrom=hannes@cmpxchg.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664200633; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=fVdpPr3f8bRd7B1cM3PWSFoALdvL6AntNtNCVepwQ2Q=; b=BkeUYcDi2Yo/AZQHfvFgcsmvAgTQHNaAEmpa23hNDbaTYod+HbTwyCaTgewjO5jiVgcswb IKQwtaP4dGoEXyCcCcToekzhQ940qdH4A9GkvbFokusdIT/I0Ojy1nEWyG2POFjv8c1qDM X1WQncS5Fo2f9/pJOwELzCq8b4b2a6g= Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=1d9f5RsB; dmarc=pass (policy=none) header.from=cmpxchg.org; spf=pass (imf05.hostedemail.com: domain of hannes@cmpxchg.org designates 209.85.222.176 as permitted sender) smtp.mailfrom=hannes@cmpxchg.org X-Rspam-User: X-Stat-Signature: disjj4zt8aqaz59twub93m9uk5s1urpu X-Rspamd-Queue-Id: 32F5210000E X-Rspamd-Server: rspam06 X-HE-Tag: 1664200632-496472 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: This is a refresh of older patches that fell through the cracks. Applies on top of mm-unstable. Documentation/admin-guide/cgroup-v1/memory.rst | 4 +- Documentation/admin-guide/kernel-parameters.txt | 6 -- arch/mips/configs/db1xxx_defconfig | 1 - arch/mips/configs/generic_defconfig | 1 - arch/powerpc/configs/powernv_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 - arch/sh/configs/sdk7786_defconfig | 1 - arch/sh/configs/urquell_defconfig | 1 - include/linux/swap.h | 2 +- include/linux/swap_cgroup.h | 4 +- init/Kconfig | 5 -- mm/Makefile | 4 +- mm/memcontrol.c | 79 ++++++++--------------- mm/swap_cgroup.c | 6 ++ tools/testing/selftests/cgroup/config | 1 - 15 files changed, 39 insertions(+), 78 deletions(-)