null_blk: remove hardcoded null_alloc_page() param
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 22 Feb 2022 15:28:51 +0000 (07:28 -0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 27 Feb 2022 21:49:49 +0000 (14:49 -0700)
commitc90b6b50b42dfdfeb27b02e670e812b69ff364f5
tree45bc5a2fea356e5d6151d60dc1054437d39cd70b
parent3d3472f3ed419fe1a9d3f881a4905fa8e03d750c
null_blk: remove hardcoded null_alloc_page() param

Only caller of null_alloc_page() is null_insert_page() unconditionally
sets only parameter to GFP_NOIO and that is statically hard-coded in
null_blk. There is no point in having statically hardcoded function
parameter.

Remove the unnecessary parameter gfp_flags and adjust the code, so it
can retain existing behavior null_alloc_page() with GFP_NOIO.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220222152852.26043-2-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c