Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4439473pxv; Tue, 20 Jul 2021 03:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+JE88S1eP2+KoV5SmkBFAP6FOAUAZzok4jW8GmnKvzByVJsobW6XSjrTw5OP3+8dRhJ2q X-Received: by 2002:a05:6402:10cc:: with SMTP id p12mr40400141edu.328.1626778616447; Tue, 20 Jul 2021 03:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626778616; cv=none; d=google.com; s=arc-20160816; b=bQG9oNWbJmWWXpphP6j0vAm7/Ema51bkunO/PFKJ7lnE6svrlMb440iGwOYBQsFo68 RfuF/W9vyfFHIUM5wTP83l8tWxkngmvGqIL6SrIj8TgnHkRnkSwWJ4AknUD7QGWrkVpw uwFeTrUY4YrjkDfQhM0j/4lk2thSo1hboMvMLTNC6z8S/rBCElVdHZ+RKWOW7mljdB2W Qw+wyOg3TFur7d53z2nKnLlB0RJBXkTE/neoSgKDahlanU6+Fl/HuGBIF7oLqDrlSpG9 7V+IELcelt8sfC9bWOj2i/caJxC2wVjwBwki5nUYBXevDAXno8CSYNKAH2/eoYADr+Mt cCLg== 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=/bV80f56iX4dQFySiXklcM8VadLzYRThK6/DcjTRSvA=; b=AiSAr75GtU6JKGntFHaPPIzB/870UXjXw1++kVY3iWugiBvGT3XWw6VOUofKTK6lYb hf/Q6llpozieOCLpq6Ddn4Y5Vu9VFlLCMbjDKS80e+TVadG4H7bIPGWPmCJquJ496UrF qIoGpx8gFhlKEITwQJfFHOFFmAR/NUli7qG4T1pa6I7DKsTx37zhPR0e/bydne9Qr3+r a13i49+VkzcYngj5q7rPbUozMTUvF0XZv2auzAh1Nzab/Z+988XiFvBfLib/mVN8sRW2 CHmc87zne/vszcD+z2BFs/wyAUkxYDFylc61APPML51Ma6Rr+USuxJis/p7rr3jAWCUV qogA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zxx34MNI; 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 t12si29889517edc.179.2021.07.20.03.56.31; Tue, 20 Jul 2021 03:56:56 -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=Zxx34MNI; 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 S238062AbhGTKOZ (ORCPT + 99 others); Tue, 20 Jul 2021 06:14:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:35602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236961AbhGTKFi (ORCPT ); Tue, 20 Jul 2021 06:05:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 036CD61208; Tue, 20 Jul 2021 10:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626777977; bh=cVJquzikbqpsZkuMxzOmiVGse7Bj0cQ+8eBMhfsg9Wg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zxx34MNI9MH/cZBKH2d7s8lip8rXG0DY4DX9uI1xHpso2LXpOdc5FOIAVs4/WwIeV rBEJsURmnA6C+xa0CBvQa82WkBaaMJLywO6LRa5K04S4IGCHhpTRs0Z4rv3AH15Jsg 21i5BWrNlncuydrkvOcw/nnEM1hmjLB8MWmC/R+3BOHRs3IN/K6rx/SQJ6adu1XTm6 mvRmBKMv/rmiF9stFbyrkJCSkzowk1xuiqSurCu+W6cdJhyncZtQ1tJhHIm7wUX4NU k2+SCzSCW68+nNAr72WXRHQHz6jnYtpqWYRHHW+azlkx0nIIXRXaaipq8TfWL5+hFX Vh1etDFQMKNqg== Date: Tue, 20 Jul 2021 13:46:09 +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" , Vlastimil Babka , William Kucharski , David Howells Subject: Re: [PATCH v14 027/138] mm/filemap: Add folio_wait_bit() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-28-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-28-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:13AM +0100, Matthew Wilcox (Oracle) wrote: > Rename wait_on_page_bit() to folio_wait_bit(). We must always wait on > the folio, otherwise we won't be woken up due to the tail page hashing > to a different bucket from the head page. > > This commit shrinks the kernel by 770 bytes, mostly due to moving > the page waitqueue lookup into folio_wait_bit_common(). > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: David Howells > --- > include/linux/pagemap.h | 10 +++--- > mm/filemap.c | 77 +++++++++++++++++++---------------------- > mm/page-writeback.c | 4 +-- > 3 files changed, 43 insertions(+), 48 deletions(-) Acked-by: Mike Rapoport