Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp535987pxb; Wed, 27 Jan 2021 14:14:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLPdM2G0PXi8EO3YyaJdSH09gWNMZgjjS7w7NUgcOlHB0Eskr2jD5L3xaQ/+szz7tA/6LM X-Received: by 2002:a17:906:3c41:: with SMTP id i1mr8544506ejg.443.1611785640322; Wed, 27 Jan 2021 14:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611785640; cv=none; d=google.com; s=arc-20160816; b=mtohB+Kepl2swZwl3BIE/EJGA6JDF/OEBwoPLunDHOLdvhcOcLPal2zgZ8Z5b7bEwb KCohjZhoxCqIJ4gcKvby5Yd0AahdxNPPdUpiXN8N4OFMdFr3ckkPvQHWCN2RRrFuOn4D YDlf7PmnWJGMZWoJd0lddVl0ykONIbjQC/yk9bcmHQRKLfOz7tyC3mUrMfykVylEUL1f JlPHNjil6OFq3SCMld2x4DSju+VlnKbtKPYxMobeJ6cD1PB87Y3ykAtvczhv+XlAt3Rn N/ew8t1++tpRAMuETlMhqrmCUkLEjEklPybd+IbpN1socBHyHUh1IWNXanry5D6DjJ2n sSwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gKU2IXNaF/+tSgZEZQhfWvyvtd9luweTb6k/c2csNAs=; b=shrQrrlwBYUd9O58OjsKnt9dvy46Z1Bogn9/oVtpPMgbJwN/oMIwhrRK7/J4q8FxpV g0YsnSqNpJ8TtdokErZzHOFMsToptbKiEVNymK0rrrRY+gLXhlsUAK7TADrzEFgjAWZV +mISnMEUfSArFk1ENU95urbr1nqtIttj2Vm0ija7EJ8u2IjjQSMp0hjg06OYDR5U+hTv uODsRNnrg0iX2PT/Vg/LaiC+MFRZaCSZ4r8E2ZZlZli+Plm2aeh06cC6V6HtXxrwHOgh WWlsl6yWpCz8SZxP0wxAt4fI02AY4aGU5pKND4NqKQS9jKt1i6ZiWb/vaz/XkiGq3sKX VCIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh18si1398328ejb.182.2021.01.27.14.13.35; Wed, 27 Jan 2021 14:14:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235780AbhA0KzO (ORCPT + 99 others); Wed, 27 Jan 2021 05:55:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:43724 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235827AbhA0KwP (ORCPT ); Wed, 27 Jan 2021 05:52:15 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2EA62AD87; Wed, 27 Jan 2021 10:51:34 +0000 (UTC) Subject: Re: [PATCH v2 03/10] mm: don't pass "enum lru_list" to lru list addition functions To: Yu Zhao Cc: Andrew Morton , Hugh Dickins , Alex Shi , Michal Hocko , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210122220600.906146-1-yuzhao@google.com> <20210122220600.906146-4-yuzhao@google.com> <85b3e8f2-5982-3329-c20d-cf062b8da71e@suse.cz> From: Vlastimil Babka Message-ID: <725432e0-3a6e-e83b-c478-ffda028ff40e@suse.cz> Date: Wed, 27 Jan 2021 11:51:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/26/21 10:34 PM, Yu Zhao wrote: > On Tue, Jan 26, 2021 at 08:13:11PM +0100, Vlastimil Babka wrote: >> On 1/22/21 11:05 PM, Yu Zhao wrote: >> > The "enum lru_list" parameter to add_page_to_lru_list() and >> > add_page_to_lru_list_tail() is redundant in the sense that it can >> > be extracted from the "struct page" parameter by page_lru(). >> >> Okay, however, it means repeated extraction of a value that we already knew. The >> result of compilation is rather sad. This is bloat-o-meter on mm/built-in.a >> (without CONFIG_DEBUG_VM, btw) between patch 2 and 5: > > Thanks for noticing this, Vlastimil. Should I drop the rest of the > series except the first patch? I didn't check how 6-10 look (and if they are still applicable without 3-5), this was just between 2 and 5.