Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp514603ybg; Mon, 1 Jun 2020 07:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7On9gWRpxXRyqYgCj02i1jyXUKVElF1I7shRo9w7ofyfrxeYo++KuCD4FIVCRQleOBslK X-Received: by 2002:a17:906:2dc7:: with SMTP id h7mr14349872eji.15.1591021253245; Mon, 01 Jun 2020 07:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591021253; cv=none; d=google.com; s=arc-20160816; b=FfyMX7dansRDZUGsIxQ/56DOFjDsQVAqAMHdwbeJYthvOxV4pUiQl0la/s9wSha6nJ AMK11vn+J5p6pKxA55jRnWs8HcKkVGN6vRUeX8fKm5LlxUDKF7yDzKrM8VAxm1vnAZmN 8n+Sbv2VvhF9gf9IHrbIHg0vJ43UaTJIx5JT+cj5OUdcuwl1454onTBNlNkrrPXKDEzM 4csFVmMh2KLGg8dHgvLImGpljSR6NFWARNvMoFVkghAwb4MYCJr8OQJJhFbG7T+HU8BY ymjdECJtFTnvG8KCQ6R5HAU+FNSCXY4ccxuegb1XnH730R6HcyrggBpcJEg2Xan4/Rag OKOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cUFCFUAHtxI+0MrjB+VhTFEOv+nU3U/VpjJNBE19AfU=; b=E3qWiwzAEPjsVnIGpVNMFjlJSmvkOSgKFKTmUqvi1tFErq9BRJk5f/tIv0PnRwNAo7 M2ItTnFq2n4bqtdsGDA4fA0r0V330ZCAD9wp917Izt4FOTZUiHatQCIArWbuKLkh/IMB LfM7RvWfObEvUSBeJGeNlCRR5hydbi/98QhLFq3ALh9Mz94ilBgAJnXpEVCNwdK+o2NE OUQTlRxZxfz+XIvM7TKrU9iEQn7c6S0lpmLDClgAwisg9AMCtQ8tMEI0Wqz39NRzqT/P ix09oGktK11Em/Kr2mOWfn/po75AqhpbIb5PkCZ/ibp3dm7j1HjPMtW6/Un2HD0gDc8Z 39Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pH9GUaVO; 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 e22si6352290ejr.506.2020.06.01.07.20.28; Mon, 01 Jun 2020 07:20:53 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pH9GUaVO; 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 S1726322AbgFAOQi (ORCPT + 99 others); Mon, 1 Jun 2020 10:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbgFAOQi (ORCPT ); Mon, 1 Jun 2020 10:16:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 446F9C05BD43; Mon, 1 Jun 2020 07:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cUFCFUAHtxI+0MrjB+VhTFEOv+nU3U/VpjJNBE19AfU=; b=pH9GUaVOcrpmbA+xhEZGHkqPsU OPIxxW2zXvtxdarH4aonsmSOAjJRazit1ADK3sGVR4APDR0XP9xfrrPXOxZsXTp41i38UtrXdMMaS q5+gPFl1jDFQjXq1Eb/5nw1PPSperRIoVD0lmu8VffbxqPSLGPykihIKtC9ympBZdLyITvu8p8zF7 LGIxyZYKxLYCV15cI3kWyb0XBehMHBQL0/8+IpEnZnyRPZd6EQlPcrUHEM11GMcBx99OLMcHKK2sK FNrccB7jCbOtQD1p1ebBm5Nyt30+0pn1bWRCWCDh7/rUKHk1mcaUSzCF1JDRw52CPb6iUdkXzBwfG +tYPF12g==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jflEv-0005tJ-1a; Mon, 01 Jun 2020 14:16:33 +0000 Date: Mon, 1 Jun 2020 07:16:32 -0700 From: Matthew Wilcox To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, David Howells Subject: Re: [PATCH 03/12] mm: abstract out wake_page_match() from wake_page_function() Message-ID: <20200601141632.GI19604@bombadil.infradead.org> References: <20200526195123.29053-1-axboe@kernel.dk> <20200526195123.29053-4-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526195123.29053-4-axboe@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 01:51:14PM -0600, Jens Axboe wrote: > +++ b/include/linux/pagemap.h > @@ -456,6 +456,43 @@ static inline pgoff_t linear_page_index(struct vm_area_struct *vma, > return pgoff; > } > > +/* This has the same layout as wait_bit_key - see fs/cachefiles/rdwr.c */ > +struct wait_page_key { > + struct page *page; > + int bit_nr; > + int page_match; > +}; I know you only moved the struct, and the comment along with it, but now that this struct is in pagemap.h, I think cachefiles should be updated to use wait_page_key instead of wait_bit_key. Dave?