fs: remove mpage_alloc
Subsystems (8)
Guenter Roeck
Tested-byQuoted 22 lines · Christoph Hellwig
Quoted 8 lines · Ryusuke Konishi
This looks because the mask of
GFP_KERNELis removed along with the removal ofmpage_alloc().The default value of the gfp flag is set to
GFP_HIGHUSER_MOVABLEbyinode_init_always().
So,__GFP_HIGHMEMhits the gfp warning atbio_alloc()thatdo_mpage_readpage()calls.Yeah. Let's try this to match the iomap code:
fs/mpage.c +1
-1@@ -148,13 +148,11 @@ static struct bio *do_mpage_readpage(struct mpage_readpage_args *args)int op =REQ_OP_READ ;unsigned nblocks;unsigned relative_block; -gfp_t gfp; +gfp_t gfp =mapping_gfp_constraint (page->mapping,GFP_KERNEL );
fs/mpage.c static struct bio *do_mpage_readpage(struct mpage_readpage_args *args) · line 158
Quoted 10 lines
fs/mpage.c +1
-3if (args->is_readahead) { op |=REQ_RAHEAD ; - gfp =readahead_gfp_mask (page->mapping); - }else { - gfp =mapping_gfp_constraint (page->mapping,GFP_KERNEL ); + gfp |= __GFP_NORETRY | __GFP_NOWARN; }if (page_has_buffers (page))
That fixes the problem for me.
Tested-by Guenter Roeck <[email protected]>
Guenter