Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp147382pxb; Thu, 12 Aug 2021 12:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2O42BiY9PNcWs8JL4y+gnhQ3yjcA41qdyeC5P9EkPDene5Cm9X+iVgBTGtKnxov6xtSX+ X-Received: by 2002:aa7:c1c4:: with SMTP id d4mr7452888edp.301.1628798133855; Thu, 12 Aug 2021 12:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628798133; cv=none; d=google.com; s=arc-20160816; b=PrgFOhRiOFfD5pi3L12YY5bXWnEfntqiXMUZgc1f68KsJxraRhD5ETyBg4Va7o0Tg1 eld2YpHlZtKAqUqYfGt1SQbRORXAYB2oxMsOnEPv1muQ2nNdjgPW0EmL/gyPp4hUCar7 HN+2OcXGvxdahrCdKHr5gFN43U7VjVKOnk08gZ9GsycBBJtoW9WfJp2HACtI2IRT0W7R 2qVnBbtv1Ln96CPwMxuqgHrQEgBBAXSVXz1zR9pplcTssKdphtixtQr6ilRLp47So5Qt /3wxwfWaLPazg1ItTnEHNKEJsTcnRG9Aita9bUw9iWsXlRUJpYLTuKDmCgWa7KE+mZ1R vwxg== 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=GjLy5j1wsZgYsAkLWE9gwStplnP2fdyuvJK9X16Uwc8=; b=oDZT6BD6EOyc/Cl8g4lS9Huq0EuHj8ToAi3taHpFFW3IamSAhmBSu6ubmTLS/sopvz Op2fZi2O80vRPcRqM+YrN9isJToGoeQuF/jdRYqWPQ98YJZRtkA6T1ZHezXTO+rrVbaO n5dGvMxMv9o6k+baa462XhE9WPxPYGGMI9J440cRKozKd5ZfroOFtbieg99dxTQvqNDn lMZPi47B3BVoCSxuAX/kpE47eJ0hNGaGHNdSvxmN8gGGTAQSBy4csS7xt8v0SmpwJT/I wxQykRyubw6lWE4MAl4k8taq0Ki8Ha1yBIdMb6yjQ7sCf5HUFFVnK3T2g0tsj5IxD/ca 7WqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=lIGzCv0I; dkim=neutral (no key) header.i=@suse.cz; 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 cf27si3399799edb.374.2021.08.12.12.55.09; Thu, 12 Aug 2021 12:55:33 -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=lIGzCv0I; dkim=neutral (no key) header.i=@suse.cz; 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 S234428AbhHLRov (ORCPT + 99 others); Thu, 12 Aug 2021 13:44:51 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34220 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhHLRor (ORCPT ); Thu, 12 Aug 2021 13:44:47 -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 74BD01FF6B; Thu, 12 Aug 2021 17:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628790261; 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=GjLy5j1wsZgYsAkLWE9gwStplnP2fdyuvJK9X16Uwc8=; b=lIGzCv0I8YlOs2Tk2VETsdI2n1dTG/ArBJfNeNJFTeMjmkytmU7iuhnI4Hah/yIKhWdE28 gLQyvfbqGHLzxnlKFj9KAEfaJh3iyx6gZqwWDvdHjF1cx0Np6YOSWfDUm3gHF/dJLnXzTy ipCbzwnH4F+u5qrGq6VOQm/cMHY0EBQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628790261; 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=GjLy5j1wsZgYsAkLWE9gwStplnP2fdyuvJK9X16Uwc8=; b=I/Uzb8Q04U6W2dEIIemlNVY5uSsyU6ekttk7DxiEItevPv0hjzKqeecSVS9qlZFo8NwDdV MRb0px56gIljIiAg== 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 5229D13AC3; Thu, 12 Aug 2021 17:44:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id H6AHE/VdFWFcEwAAGKfGzw (envelope-from ); Thu, 12 Aug 2021 17:44:21 +0000 Subject: Re: [PATCH v14 088/138] mm/filemap: Add filemap_get_folio To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-89-willy@infradead.org> From: Vlastimil Babka Message-ID: <8117c1fa-deeb-c90e-be11-a445d314caed@suse.cz> Date: Thu, 12 Aug 2021 19:44:20 +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-89-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: > filemap_get_folio() is a replacement for find_get_page(). > Turn pagecache_get_page() into a wrapper around __filemap_get_folio(). > Remove find_lock_head() as this use case is now covered by > filemap_get_folio(). > > Reduces overall kernel size by 209 bytes. __filemap_get_folio() is > 316 bytes shorter than pagecache_get_page() was, but the new > pagecache_get_page() is 99 bytes. > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Vlastimil Babka