Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp64583rdf; Thu, 2 Nov 2023 13:58:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEadYgOPTMOYY9QrEHcaCP4dOlOCDcDvg59DoJkTnlIWp3GNK3iBVZlY/JfH9dveeRmKW+i X-Received: by 2002:aa7:88c9:0:b0:6be:2081:f66d with SMTP id k9-20020aa788c9000000b006be2081f66dmr25365415pff.27.1698958721636; Thu, 02 Nov 2023 13:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698958721; cv=none; d=google.com; s=arc-20160816; b=l0HVAsB/XdTYiFCufZue6401IZGB2P9XMMTXJA0/G5NWUcTkAuaqoTjz4sXMweJHuT myZStfCN8VmsX2pNVl5gi8zq2vvlaTkib9HM40oBInwmoIKJ9CBhPnVf2nOhd4xcLoC3 IjVMW8CeaI5E9kPHSkphB4/TIZHWX/rv5dwBjlSezfBpjjj81dzeTCyc/Z57Iul6M4oj 421Jpl2qBCPewuBPxVcFSakgu8GoHpRQN/2A2BBRzE0r3UaIhXeJUqnptxDYyGTp2j54 i6+5Uvi+DWZe5F7Wxkb8NctKuyN3yEdbGUkTd3/1myMXEKNXqmxkOTXUWkN7msUoCc0N UCDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cstE9fD5qQ5qJwAb5/3UxpI/SzYe5lMdLih9ETiot+c=; fh=rLnlwlSYRt6VzYmtfUt/poYlrkFyR1ga3L1A78bArCM=; b=FG2ZobT9jX7sfkr3KZGLlRvyLZK4/pDg6LTCMy3eNHzCE0BgARv9xEAh2Od9VkXgJY s5DDSgxu3niotJs572O0dMTk1TGZxRYaSfeb67deASCWzaBAMaspybF5Dnf6l1ZN3Tpr EPIV7V+T4vOejJ0qsKjjV0IuTh/zn3FGTcKHJJiDvSCL/jbGDR13pHstrfxFIefCGzKe ZnmXCA3LfeNZLZ/ekiwBXeINiW67nSXHebbnugEwF8jJH+S7J6IdygipEnTYPDELDxst qdLas48k1PRg53WdVOc11xKpaEreQAr5S/Q1qmrYUOD+v1UIJL5MlASYbhNlJAFyaJRo bTiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E4uHGVLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fc27-20020a056a002e1b00b006bf349fd067si265474pfb.156.2023.11.02.13.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 13:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=E4uHGVLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 26E3380952F1; Thu, 2 Nov 2023 13:58:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232831AbjKBU61 (ORCPT + 99 others); Thu, 2 Nov 2023 16:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjKBU60 (ORCPT ); Thu, 2 Nov 2023 16:58:26 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A6D2188; Thu, 2 Nov 2023 13:58:24 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6ba54c3ed97so1484347b3a.2; Thu, 02 Nov 2023 13:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698958704; x=1699563504; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cstE9fD5qQ5qJwAb5/3UxpI/SzYe5lMdLih9ETiot+c=; b=E4uHGVLWM2fmSbQqF+dD2UASVLPQX4dSVfvZW9fiAfM/jIhZfpo5tgsB3L9WNuYg6C n6erKhhtPxgej/O8R/may9uJEf/y2CwBeTQceKe1IIS7+pVh5U5a6gK50u2q26Q7NX5j hXuwKVLugitY4BjhpKG9Q3VpBR/KETPg4ekcpTTlW3LXaFE1BG8ypsnMRIcGluKC719W 3SkeWXi7TCNOgbaPME73e2Y3rdJXIDtvRQHZ24ErKghtsSThoEeQ46j9NvbX6mvk50WR SlB7lw9EQASIhzOYvE9kLDor9FTNx1k1O1lnuXVoAkOe6c1n0b/ETFa05n4qrz66NOq3 Js2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698958704; x=1699563504; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cstE9fD5qQ5qJwAb5/3UxpI/SzYe5lMdLih9ETiot+c=; b=G6HJYmtTwjjn/D3vB6ohextPWPkdtOunve4XcSmMRMMoNotMcx4BPwRz+9OXl+fJeu k6A7sG9xId61+Vn/KZ4enLgYYLvpmsn5/qMJVgSaYobfpSE5bIWQtgCAFBb/4yEw/rT5 803aHba3B6BXwjlLpso+9GXBuyscb1R+AQ31/7WUSht6wNoJDkJ9ngj9H7/PCu1GmFxw Jhn0Kw+QbPaZwwi55hAc3dIqGszlknsaWGKDs0DpDopuE3I5l8QBMS3G6X15lCKf62K9 ITfQVO5j1RxRhXoy+tED1/BKR9Wu39W8Deh0TCgfa9EVtmKj7awWBrgQArGEbIwFnwnt jJUg== X-Gm-Message-State: AOJu0YzHHrvrdqu/j2amXJq6Ri8vgaiS5uYC8h8zkQ2s9m16txSCcr3f X0e+j95qqrqVKNl0U7G0tyE= X-Received: by 2002:a05:6a20:914a:b0:13f:9cee:ff42 with SMTP id x10-20020a056a20914a00b0013f9ceeff42mr24768259pzc.41.1698958703758; Thu, 02 Nov 2023 13:58:23 -0700 (PDT) Received: from localhost (fwdproxy-prn-120.fbsv.net. [2a03:2880:ff:78::face:b00c]) by smtp.gmail.com with ESMTPSA id j15-20020aa78d0f000000b006be0b0fc83asm160551pfe.125.2023.11.02.13.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 13:58:23 -0700 (PDT) From: Nhat Pham To: akpm@linux-foundation.org Cc: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cerasuolodomenico@gmail.com, yosryahmed@google.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, mhocko@kernel.org, roman.gushchin@linux.dev, shakeelb@google.com, muchun.song@linux.dev, hughd@google.com, corbet@lwn.net, konrad.wilk@oracle.com, senozhatsky@chromium.org, rppt@kernel.org, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, david@ixit.cz Subject: [RFC PATCH v2] zswap: memcontrol: mplement zswap writeback disabling (fix) Date: Thu, 2 Nov 2023 13:58:22 -0700 Message-Id: <20231102205822.1135655-1-nphamcs@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231102200202.920461-1-nphamcs@gmail.com> References: <20231102200202.920461-1-nphamcs@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 13:58:39 -0700 (PDT) Remove a leftover function from an previous iteration of the patch. Signed-off-by: Nhat Pham --- include/linux/memcontrol.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index e3a3a06727dc..7ff55f557bd8 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -1621,12 +1621,6 @@ unsigned long mem_cgroup_soft_limit_reclaim(pg_data_t *pgdat, int order, { return 0; } - -static inline bool mem_cgroup_swap_disk_enabled(struct mem_cgroup *memcg) -{ - return false; -} - #endif /* CONFIG_MEMCG */ static inline void __inc_lruvec_kmem_state(void *p, enum node_stat_item idx) -- 2.34.1