From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:35254 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728045AbeKJBAj (ORCPT ); Fri, 9 Nov 2018 20:00:39 -0500 Date: Fri, 9 Nov 2018 07:19:38 -0800 From: Christoph Hellwig To: Dave Chinner Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 07/16] iomap: prepare buffered IO paths for block size > page size Message-ID: <20181109151938.GG9153@infradead.org> References: <20181107063127.3902-1-david@fromorbit.com> <20181107063127.3902-8-david@fromorbit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181107063127.3902-8-david@fromorbit.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > +/* > + * Return the block size we should use for page cache based operations. > + * This will return the inode block size for block size < PAGE_SIZE, > + * otherwise it will return PAGE_SIZE. > + */ > +static inline unsigned > +iomap_pageblock_size(struct inode *inode) Maybe cal this a chunk size instead?