]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
blkcg: rename blkg_try_get() to blkg_tryget()
authorDennis Zhou <dennis@kernel.org>
Wed, 5 Dec 2018 17:10:39 +0000 (12:10 -0500)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:38 +0000 (22:26 -0700)
commit7754f669ffde3919e398a9e591cd7510d6cf4e73
tree7d32cf5b86590053afa34b479bdcb1210006dfed
parent7fcf2b033b84e261dca283bc2911aaea4b07b525
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>
block/bio.c
block/blk-cgroup.c
block/blk-iolatency.c
include/linux/blk-cgroup.h