Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1785038pxb; Sat, 14 Nov 2020 02:08:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZSZXFwKctP+O2kCO9JTiYsRGBWTREJSXq1Zxy1V1V72K25O6nDWpWMqgph1kfMLeMvk6X X-Received: by 2002:a17:906:e53:: with SMTP id q19mr6252659eji.254.1605348534083; Sat, 14 Nov 2020 02:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605348534; cv=none; d=google.com; s=arc-20160816; b=sSGTaF/6UkVGWjMr1P+/xwUzRi1ifeV2DjwCNQOY/YoYqTp+JNmDasxUt0BpR4921f KwneQmy2zEKIoIe1sbcCsM328xr/0shD4JeYY8a/Cf8kU2rS/DPUnVhtOJFbYCEh5G9r E0FTu52PI0Ml3pzkxbcsdhOa6DTNjFnEyY8U+b43zaMb5zYEouMZT0qwQQFg+N+c3Qz8 XsGzaHqJ1oU4uvpvDKBHngBvXs2Ds5o6SOeR7O90JW/4YP9xGe8nbSFfVfuiIn8gEcEn 9XjVkY6hJUaDzpKcwoktMvi1c2zuvFBozWmMQ3SNyQe0CnOrt/T4zXxdvvIyFuTKQ3sg Nf9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8an115FDjSUXy3ja/197DB+rceSP9CfdoOYVvV3BViU=; b=IJfLJEQ1vEGVdMkAWQqd75hFcp2tPP4CISvnHeKHmRhMA/BVj6pPO5hCOuIijI6Vif q62CcW71jPfJf0O+oveJ/Sf2LV3yH1n98aADp4mCwKatwiFPwt8iNezYDNGYbEL04udI 0sRhAE3k6kSpkpzuoySwB/3FTNz+/edW9Zj8UHOnX9RnO7THf8BPgPGs5A9CTgODhfy8 007LWiCGLdNp6w2qdFROiUGD0mgwq2LGvMNnBqjdRDJ1yRilKUlplG/rZ0B8TF3LGuh6 hMkbJzsQ5GwaERAApJNLtBiVqYfh7Juf44XaPygNsh22AneihhSi0vS6MVyQ1UgJvmwJ SAmg== ARC-Authentication-Results: i=1; mx.google.com; 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 k7si8303621edr.388.2020.11.14.02.08.31; Sat, 14 Nov 2020 02:08:54 -0800 (PST) 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; 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 S1726742AbgKNKGw (ORCPT + 99 others); Sat, 14 Nov 2020 05:06:52 -0500 Received: from verein.lst.de ([213.95.11.211]:49940 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbgKNKGw (ORCPT ); Sat, 14 Nov 2020 05:06:52 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id B244267373; Sat, 14 Nov 2020 11:06:48 +0100 (CET) Date: Sat, 14 Nov 2020 11:06:48 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hughd@google.com, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 08/16] iomap: Use mapping_seek_hole_data Message-ID: <20201114100648.GI19102@lst.de> References: <20201112212641.27837-1-willy@infradead.org> <20201112212641.27837-9-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112212641.27837-9-willy@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 09:26:33PM +0000, Matthew Wilcox (Oracle) wrote: > Enhance mapping_seek_hole_data() to handle partially uptodate pages and > convert the iomap seek code to call it. Maybe split this into two patches for the mapping_seek_hole_data enhancement (which could use a little more of a commit log anyway..) and the iomap switch? > -static inline bool page_seek_match(struct page *page, bool seek_data) > +static inline loff_t page_seek_hole_data(struct xa_state *xas, > + struct address_space *mapping, struct page *page, > + loff_t start, loff_t end, bool seek_data) This seems like quite a huge function to force inline..