fs: remove mpage_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:49 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commitd5f68a42da7a4516e7503c281a54a58727f07dc3
treed46e6e44a1f009aa070ce56372cfc8886be8b9b4
parent322cbb50de711814c42fb088f6d31901502c711a
fs: remove mpage_alloc

open code mpage_alloc in it's two callers and simplify the results
because of the context:

 - __mpage_writepage always passes GFP_NOFS and can thus always sleep and
    will never get a NULL return from bio_alloc at all.
 - do_mpage_readpage can only get a non-sleeping context for readahead
   which never sets PF_MEMALLOC and thus doesn't need the retry loop
   either.

Both cases will never have __GFP_HIGH set.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220124091107.642561-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/mpage.c