bdi: simplify bdi_alloc

Merge the _node vs normal version and drop the superflous gfp_t argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Christoph Hellwig
2020-05-04 14:48:00 +02:00
committed by Jens Axboe
parent 3c5d202b55
commit aef33c2ff8
5 changed files with 7 additions and 12 deletions

View File

@@ -1598,7 +1598,7 @@ int super_setup_bdi_name(struct super_block *sb, char *fmt, ...)
int err;
va_list args;
bdi = bdi_alloc(GFP_KERNEL);
bdi = bdi_alloc(NUMA_NO_NODE);
if (!bdi)
return -ENOMEM;