Message ID | 20230808084431.1632934-1-alexjlzheng@tencent.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 25C68C001B0 for <linux-mm@archiver.kernel.org>; Tue, 8 Aug 2023 08:46:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 474DA8D0002; Tue, 8 Aug 2023 04:46:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4244A8D0001; Tue, 8 Aug 2023 04:46:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2EB218D0002; Tue, 8 Aug 2023 04:46:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 11D548D0001 for <linux-mm@kvack.org>; Tue, 8 Aug 2023 04:46:39 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DD1D91C9BC6 for <linux-mm@kvack.org>; Tue, 8 Aug 2023 08:46:38 +0000 (UTC) X-FDA: 81100306476.08.80DFA36 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by imf27.hostedemail.com (Postfix) with ESMTP id 1144A4000C for <linux-mm@kvack.org>; Tue, 8 Aug 2023 08:46:36 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NSSOrE1Y; spf=pass (imf27.hostedemail.com: domain of alexjlzheng@gmail.com designates 209.85.214.172 as permitted sender) smtp.mailfrom=alexjlzheng@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691484397; 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=rt72qNtSF7rZ1Cnz4oyWX+TnZhjCs3AGVCD5IGIHOTA=; b=Vu/ImGIqm0w6hQmJkjITjXuFOJkiyCvEqDlzk8FXc45Zl3L2SSuPZ6Dj8RlnF2j1mdEi6t 7sFuXx6+KW+46aEBTRDTyV44hQIaa+vd+un1ZNIXfEwy1AzZbj4c3tL+9WsMf7JPXmDKar MxaueyaJjO24HBqvuOGha4dKAR2hdkk= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NSSOrE1Y; spf=pass (imf27.hostedemail.com: domain of alexjlzheng@gmail.com designates 209.85.214.172 as permitted sender) smtp.mailfrom=alexjlzheng@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691484397; a=rsa-sha256; cv=none; b=c/k5xJh6cq4PDSAbsmqO2LkGFWOaxKYRm1M8LHyKwYSUYj0ldgn2CctNMDVp4jYaQ3IDGq aPe43Yq3Gmygs3GOzunOGH1pVcRl6FaAgB1VegQ0w6cPR3suO3dGa/695D/JOWjvLiu7pb 3BFrhFdK3sfYES9TUW2ipllvZg4L4ik= Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1bc34b32785so35233995ad.3 for <linux-mm@kvack.org>; Tue, 08 Aug 2023 01:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691484396; x=1692089196; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rt72qNtSF7rZ1Cnz4oyWX+TnZhjCs3AGVCD5IGIHOTA=; b=NSSOrE1YutGb6t8FvJOql25sMTSOLINIBl6H7J0JXL5FyaJY/m+NCh/rgAUI5VHNlJ DkppuQmnnbdFfVHfJdlHhLWbEj2xRQ7sJT7WG9+i9Vn3VhMIIVogLxJs1PUchaBIn8cC PAkVis++5lyRUe4gEQKdK3eyoA54aM6cX/IycDqzS9H3fEngF7K7sqvkaUmImMuyOvqW VgmsoCjrlpJisvr0GLzWy54JU+3TZfSs9Z2JrudQE7nl/CC7YZU0MdJUv02t6guW3Rwm 2MLe459yAtMDwUIZmj2A9Hvoop8alT1LH0beqPFjhRktCK2KBxpWRyVmAWTWP8QYrpmV iqGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691484396; x=1692089196; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rt72qNtSF7rZ1Cnz4oyWX+TnZhjCs3AGVCD5IGIHOTA=; b=Cjiw5qVop/ULHSPgSYrPDzUzV6cLRZxZN4SOWaT++mcLgnBjaY/xu5e5i5iY/V2CN3 Bis7nCl5LZJqixKYWsd8+UuGo9PhDwCklnwSmF314dL6zHrp1KupAnCiFRYUUf9iOqXy 5TY3aXUUxqCRp4aODeoM2VOnhk9nkBtRnFhE1cC/O/CmRj52Ifa8y5JC+3zvCbMQIVmf aO/eDIpXfuORF8uAELcjpg/Cr0Z5TyU7/bphA6ln/DmvpeHGHF8OseplP/oUhlxkApfH n54Ihs1Fs6jbVSCIWTUKONLZmBpbfKqc/+UuTBjOsZSYG7PVnvUQ+n0OaiT87iP2Nyhu 659Q== X-Gm-Message-State: AOJu0Yz+7PrHmd6PqZRxYJ23p5ZO41dmF1TFqyAAf+G/x60Kfh3YS8tC uXj0Gjk5FtMBQIBdL2zisgY= X-Google-Smtp-Source: AGHT+IH8FrLarnBGrUuMl9KPJWo0+EVTzGmY8X5Xyia/GEJJ00nKOVDXm0Jc9HGRXYJPMCd95h2HmA== X-Received: by 2002:a17:902:d48a:b0:1b8:9b17:f63d with SMTP id c10-20020a170902d48a00b001b89b17f63dmr11341555plg.23.1691484395759; Tue, 08 Aug 2023 01:46:35 -0700 (PDT) Received: from localhost.localdomain ([43.132.141.9]) by smtp.gmail.com with ESMTPSA id kb14-20020a170903338e00b001bbbc655ca1sm8383487plb.219.2023.08.08.01.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 01:46:35 -0700 (PDT) From: alexjlzheng@gmail.com X-Google-Original-From: alexjlzheng@tencent.com To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jinliang Zheng <alexjlzheng@tencent.com> Subject: [PATCH] writeback: remove redundant checks for root memcg Date: Tue, 8 Aug 2023 16:44:32 +0800 Message-Id: <20230808084431.1632934-1-alexjlzheng@tencent.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1144A4000C X-Rspam-User: X-Stat-Signature: gng8kww3a4u7nroak1rktnufcfxkt46i X-Rspamd-Server: rspam01 X-HE-Tag: 1691484396-878909 X-HE-Meta: U2FsdGVkX19UrCfrdtF40s54vF1oBR1/7XvD1JoPvCDgOuDes2nGcsqkUEbRR/yiT6HGdCjLFnPrRw2uaXk1iPjQcmLo69roX6ubuO/ilp3XLECq8rjrHkeoyVZGAsYDN4IQS+xqRTCNacwVgs2Op6G/2YQ2YXa6jwVGjSV20DTaD6eCpEN/wfCjQ5kBaySUoIz3xbGtEr+R2PIjnf7zmhTmlZFWjrdpw3iSxvXGb6R308r6qnYUv65l93XJGukrDjld1V9fUPI5MyL7wqJRgYkEf9CfvK2FiANNFLXUU4tDplcTm3SrAdSqqH4wD+9j5p9Y/mgP9qTGzpcSG9rrjTV13Hr/UaCvNfEvVgc1zazWzyDG1lmyUYvX9YYvku3XiRvOdo/8lCikAMFcjGRlJ276AlK9/nHOmpdsQHGGnfP11GtE8zs4jwF/T8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-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
writeback: remove redundant checks for root memcg
|
expand
|
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 3ffc3cfa7a14..9076f3ad39de 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -733,9 +733,6 @@ struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi, might_alloc(gfp); - if (!memcg_css->parent) - return &bdi->wb; - do { wb = wb_get_lookup(bdi, memcg_css); } while (!wb && !cgwb_create(bdi, memcg_css, gfp));