diff options
author | Christoph Hellwig <hch@lst.de> | 2022-01-24 12:10:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-02 17:49:59 +0300 |
commit | d5f68a42da7a4516e7503c281a54a58727f07dc3 (patch) | |
tree | d46e6e44a1f009aa070ce56372cfc8886be8b9b4 /fs/dlm/util.c | |
parent | 322cbb50de711814c42fb088f6d31901502c711a (diff) | |
download | linux-d5f68a42da7a4516e7503c281a54a58727f07dc3.tar.xz |
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>
Diffstat (limited to 'fs/dlm/util.c')
0 files changed, 0 insertions, 0 deletions