Re: [PATCH] squashfs: avoid bio_alloc() failure with 1Mbyte blocks

2020-08-18 Thread Andrew Morton
On Fri, 14 Aug 2020 21:30:33 -0700 Guenter Roeck wrote: > On Fri, Aug 14, 2020 at 8:57 PM Phillip Lougher > wrote: > > > > This is a regression introduced by the "migrate from ll_rw_block usage > > to BIO" patch. > > > > Bio_alloc() is limited to 256 pages (1 Mbyte). This can cause a > > fail

[PATCH] squashfs: avoid bio_alloc() failure with 1Mbyte blocks

2020-08-15 Thread Phillip Lougher
This is a regression introduced by the "migrate from ll_rw_block usage to BIO" patch. Bio_alloc() is limited to 256 pages (1 Mbyte). This can cause a failure when reading 1 Mbyte block filesystems. The problem is a datablock can be fully (or almost uncompressed), requiring 256 pages, but, becau

Re: [PATCH] squashfs: avoid bio_alloc() failure with 1Mbyte blocks

2020-08-15 Thread Guenter Roeck
On Fri, Aug 14, 2020 at 8:57 PM Phillip Lougher wrote: > > This is a regression introduced by the "migrate from ll_rw_block usage > to BIO" patch. > > Bio_alloc() is limited to 256 pages (1 Mbyte). This can cause a > failure when reading 1 Mbyte block filesystems. The problem is > a datablock c