summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorDennis Zhou2018-12-05 18:10:39 +0100
committerJens Axboe2018-12-08 06:26:38 +0100
commit7754f669ffde3919e398a9e591cd7510d6cf4e73 (patch)
tree7d32cf5b86590053afa34b479bdcb1210006dfed /block/bio.c
parentblkcg: change blkg reference counting to use percpu_ref (diff)
downloadkernel-qcow2-linux-7754f669ffde3919e398a9e591cd7510d6cf4e73.tar.gz
kernel-qcow2-linux-7754f669ffde3919e398a9e591cd7510d6cf4e73.tar.xz
kernel-qcow2-linux-7754f669ffde3919e398a9e591cd7510d6cf4e73.zip
blkcg: rename blkg_try_get() to blkg_tryget()
blkg reference counting now uses percpu_ref rather than atomic_t. Let's make this consistent with css_tryget. This renames blkg_try_get to blkg_tryget and now returns a bool rather than the blkg or %NULL. Signed-off-by: Dennis Zhou <dennis@kernel.org> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c
index 7ec5316e6ecc..06760543ec81 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1990,7 +1990,7 @@ static void __bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg)
{
bio_disassociate_blkg(bio);
- bio->bi_blkg = blkg_try_get_closest(blkg);
+ bio->bi_blkg = blkg_tryget_closest(blkg);
}
/**