diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-04 14:47:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-09 16:15:13 -0600 |
commit | 3c5d202b55d3fa9106607f99cdd5044b02b5929b (patch) | |
tree | d87bffecd91741f528a5a3b7905662b0c79ff748 /include | |
parent | a5a6c66df6bf951007f434fad04d777289f00aa6 (diff) | |
download | linux-stable-3c5d202b55d3fa9106607f99cdd5044b02b5929b.tar.gz linux-stable-3c5d202b55d3fa9106607f99cdd5044b02b5929b.tar.bz2 linux-stable-3c5d202b55d3fa9106607f99cdd5044b02b5929b.zip |
bdi: remove bdi_register_owner
Split out a new bdi_set_owner helper to set the owner, and move the policy
for creating the bdi name back into genhd.c, where it belongs.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/backing-dev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index c9ad5c3b7b4b..4098ed6ba6b4 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -33,7 +33,7 @@ int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...); __printf(2, 0) int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, va_list args); -int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner); +void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner); void bdi_unregister(struct backing_dev_info *bdi); struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id); |