mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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:
committed by
Jens Axboe
parent
3c5d202b55
commit
aef33c2ff8
@@ -865,12 +865,11 @@ static int bdi_init(struct backing_dev_info *bdi)
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id)
|
||||
struct backing_dev_info *bdi_alloc(int node_id)
|
||||
{
|
||||
struct backing_dev_info *bdi;
|
||||
|
||||
bdi = kmalloc_node(sizeof(struct backing_dev_info),
|
||||
gfp_mask | __GFP_ZERO, node_id);
|
||||
bdi = kzalloc_node(sizeof(*bdi), GFP_KERNEL, node_id);
|
||||
if (!bdi)
|
||||
return NULL;
|
||||
|
||||
@@ -880,7 +879,7 @@ struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id)
|
||||
}
|
||||
return bdi;
|
||||
}
|
||||
EXPORT_SYMBOL(bdi_alloc_node);
|
||||
EXPORT_SYMBOL(bdi_alloc);
|
||||
|
||||
static struct rb_node **bdi_lookup_rb_node(u64 id, struct rb_node **parentp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user