Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4438527pxv; Tue, 20 Jul 2021 03:55:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfW1nxmgXLC2iLqKhKGzexRq3f2i/IKCmWLZFtBoG2BWaQitGBJNVcJkrJ8RgA9OHLS9Eb X-Received: by 2002:a05:6638:338f:: with SMTP id h15mr25939032jav.135.1626778515606; Tue, 20 Jul 2021 03:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778515; cv=none; d=google.com; s=arc-20160816; b=naGtOYj6wX98GSP3VhMuY18INfyPXdYtVru+4E7SX6Rz5ztlHBZtNUBinlQC5wPzqm qR393wzFotlEAk4X2SfrviWfA1YPOzdeH8yHfciQYczD9kPWG7jq4w4a2LjybkHEDwJE y4YjUjXQlrx8umouJ4Yrsqsj0Jyik1sOX99ItDCdbXr0q1q3Kz17UEMZXE+TNl7d6EVo XK9EE2gLIagWB76gnpyxuIxdFdiM3wjqsdB3qv+G0qXyIZgvRH1WIN1hJpIzNaPIV0ob zitcvMiDcPZaUST1h068D/MUfy93isjI74zMJhZMoSKF2uY/oy9hBf0dSgWg30W3JwKd jPiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q4dyHb3VTaQIwx8hUMQe4rveo3W+h3WLIkXkQKholCg=; b=xThUhzYkqrwO7YrxPhjcTp8HvgFXiYcRseUWydjx24jpY0pvMfWeJaZ1OjHt71k+Xy a5sjQIKy6RwHFCH7XkEk2Sf0YRUXmf/+m5/dr9SwEQ+aJkig75T85KGyb/O++93qj+sc pwbcsTdSBM7pP4q4GxuEr/gv4tnHCizZvFu6yNmHt5SKccEwUsUZhNuwxe5IxHl0eoJn TQvrjqIwgySPw1ZH9YmRQVj9ti1RUAnyI5oRK3rQr5VF9zbo57IHvwzxbhHq9TptNV6j JbITtFLY04h7ofUnnq4b5GIDEaOT2GCx0KRjaHIruTq8wmlMpBrH9bwIiJPmrKTkrmtF sQGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XLDKq/7Q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si12408608ilu.3.2021.07.20.03.55.04; Tue, 20 Jul 2021 03:55:15 -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=@kernel.org header.s=k20201202 header.b="XLDKq/7Q"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235706AbhGTKM6 (ORCPT + 99 others); Tue, 20 Jul 2021 06:12:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:35258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237050AbhGTKEt (ORCPT ); Tue, 20 Jul 2021 06:04:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C011561221; Tue, 20 Jul 2021 10:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777928; bh=AoiepgxEITyIJRI5qaMn5CqtGrZnv94SEd8njH1wOHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XLDKq/7Qy1ARgF8QTIrfXYPTCI2BJ98d3nHYQ/TmYVBNHNO+Ao7hzO15JQspO/B38 hJc4mtlw5HkBLeesli974ynw5Lp8jxuYtPiLMHmU+hpnbk9mO8R2u978fwAyFmKVn4 8V56bCtzQBQ5rD3Xp/Eg7FqBc/FsKLuIImD0Ggk9V4n+qZ60ziinlm4/EFqJfNdoM1 EPEGKo3z/15A0zAIZddR5DbnBoldjVUIAwBiUXCbEQkhMCrt1/d6r73pZgpn2nx1zQ k633OgX8RccMVDxQDxdHM5/dXTaEjpKoUmTL2SkYcmpfP6G1dJDxWIR7kI5buXy/Dv ZXsfiC6Sk9Lkw== Date: Tue, 20 Jul 2021 13:45:21 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jeff Layton , "Kirill A . Shutemov" , William Kucharski Subject: Re: [PATCH v14 022/138] mm/filemap: Add __folio_lock_or_retry() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-23-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-23-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:08AM +0100, Matthew Wilcox (Oracle) wrote: > Convert __lock_page_or_retry() to __folio_lock_or_retry(). This actually > saves 4 bytes in the only caller of lock_page_or_retry() (due to better > register allocation) and saves the 14 byte cost of calling page_folio() > in __folio_lock_or_retry() for a total saving of 18 bytes. Also use > a bool for the return type. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Reviewed-by: William Kucharski > --- > include/linux/pagemap.h | 11 +++++++---- > mm/filemap.c | 20 +++++++++----------- > mm/memory.c | 8 ++++---- > 3 files changed, 20 insertions(+), 19 deletions(-) Acked-by: Mike Rapoport