Re: [PATCH 3/3] iomap: Support arbitrarily many blocks per page

2020-08-21 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 01:46:06PM +0100, Matthew Wilcox (Oracle) wrote: > Size the uptodate array dynamically and add a few debugging assertions. Needs a rebase to not require i_blocks_per_page, and a somewhat more details changelog that requires why we change this. Otherwise this looks good and

Re: [PATCH 3/3] iomap: Support arbitrarily many blocks per page

2020-08-21 Thread Matthew Wilcox
On Fri, Aug 21, 2020 at 01:46:06PM +0100, Matthew Wilcox (Oracle) wrote: > @@ -45,11 +46,13 @@ static struct iomap_page * > iomap_page_create(struct inode *inode, struct page *page) > { > struct iomap_page *iop = to_iomap_page(page); > + unsigned int nr_blocks = i_blocks_per_page(inode,

[PATCH 3/3] iomap: Support arbitrarily many blocks per page

2020-08-21 Thread Matthew Wilcox (Oracle)
Size the uptodate array dynamically and add a few debugging assertions. Signed-off-by: Matthew Wilcox (Oracle) --- fs/iomap/buffered-io.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index dbf9572dabe9..844e95