Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp96935pxb; Thu, 12 Aug 2021 11:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzScPPrrbL3PAeYbgVwnYMArjOzmV5IpR//7vNT80/tfRopnhhAWHEWxdlcWo8/Q5rFo1mW X-Received: by 2002:a92:511:: with SMTP id q17mr311ile.210.1628793527284; Thu, 12 Aug 2021 11:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628793527; cv=none; d=google.com; s=arc-20160816; b=DpUofA5kqQkYPS+K/5cFUWCEKZoR58fPEbKmUMDWf7Hf5t17KPYuptkWsBw0WXkt7f pwm3VjUzZtewBKeQa1vwPSDcdu4f2dDZMdujdAhKs4yytn1xhsGwaYKtdBLjzJ0dXS+3 HVm3smJgQr2ugzb+/RLHeUBuT9S5AcUpbZ/tkJr8FQPzqt3p4HhRgut1+sHIjvy8o9S1 34rrEJGwZalc9MovUQ/zDMYs5Kr5cKSganytRWV6maqyqTQd2NhVtAG+xY9wK+OLaJOc uU2xa6UoGiMkbXGxkfRpL11KmRZTViIWmbA2eg4qJ2WcDavg5mMg0Y4qhVMjRfALoDK9 cVVw== 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:dkim-signature:dkim-signature; bh=O0p8vmEZNtTc7G27OtHRUgOe8jO1KXKpRv9NbmMzZbA=; b=uc3pYqGXPfjJtcpkl40H6RcqQwqCI5A5je/EWZ2lb4+0iH71NU2lNHWj4AfZQSohyG w6HfkQQOYTlLU7pj+lNog8WzUAjuTYMJLqeCmjFg/f174isUlAWWkef0cPKyEcvT/gjO N2K6/DxHV+NzQsnFH/Z+GrGPS0HsFPlvJK/gOuh7ONpy6RVdkzzzXY99V0AwyH5Ef2Rx jdJ3jnNXXMP9KftGoWkiZ/nX+Fa8U7Y/cxtCLyn7ahTWJssyAMQQl0baTLd2YDXeRfVT h0t203DUYxaTUq/hymfzTnlGAmF/uA3utJ1b3beGhUtRD/pWYBRBZaKt5c1Q3xthL/qJ S4+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HXIFR+5E; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 e16si3805740ilm.91.2021.08.12.11.38.36; Thu, 12 Aug 2021 11:38:47 -0700 (PDT) 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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HXIFR+5E; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S235618AbhHLRW3 (ORCPT + 99 others); Thu, 12 Aug 2021 13:22:29 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:60552 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235526AbhHLRW2 (ORCPT ); Thu, 12 Aug 2021 13:22:28 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AB6871FD9F; Thu, 12 Aug 2021 17:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628788921; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O0p8vmEZNtTc7G27OtHRUgOe8jO1KXKpRv9NbmMzZbA=; b=HXIFR+5EDwH78sHuGi8ouJopj48qRV3LXPZOHkQaw/RybV8F2IErD8Izi/k27yTIp5HwqM fPvMyDvBNTY1iqIOAjZaX71dCQUmT8MCejllMkngVuO1S9OcAEcg/jdOpqL34LBKqF7GOk YsTUVuIsZHm/8DNAKACXsHDep4xrXZE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628788921; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O0p8vmEZNtTc7G27OtHRUgOe8jO1KXKpRv9NbmMzZbA=; b=68x+i4qKX2tbv46pB1AHQ+IbafxsaOepEfupi8LmBAlLniOAKMZBrZqPp3VugYl19lj3S4 6MWFw8nhlSIuHdDQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 978BB13AC3; Thu, 12 Aug 2021 17:22:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id Sl5uJLlYFWGnDgAAGKfGzw (envelope-from ); Thu, 12 Aug 2021 17:22:01 +0000 Subject: Re: [PATCH v14 083/138] mm/lru: Add folio_add_lru() To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-84-willy@infradead.org> From: Vlastimil Babka Message-ID: <0dbf230b-3d72-a144-21c4-ffa08708fc89@suse.cz> Date: Thu, 12 Aug 2021 19:22:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-84-willy@infradead.org> 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 7/15/21 5:36 AM, Matthew Wilcox (Oracle) wrote: > Reimplement lru_cache_add() as a wrapper around folio_add_lru(). > Saves 159 bytes of kernel text due to removing calls to compound_head(). > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Acked-by: Vlastimil Babka