diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-08-12 17:06:54 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-10-22 10:28:19 +0200 |
commit | 7d8dc53414c5770afb8b83db096ecab0cd53ec93 (patch) | |
tree | 105d0c749528ef03022f08fd42eccd7f9b311a6c /drivers/block | |
parent | ceph: reset cap hold timeout only for requeued inode (diff) | |
download | linux-7d8dc53414c5770afb8b83db096ecab0cd53ec93.tar.xz linux-7d8dc53414c5770afb8b83db096ecab0cd53ec93.zip |
rbd: add __init/__exit annotations
Add __init/__exit annotation to init/cleanup helpers
which are only called once in the module.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 73ed5f3a862d..f2fe692dda40 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -6067,7 +6067,7 @@ static ssize_t rbd_remove_single_major(struct bus_type *bus, * create control files in sysfs * /sys/bus/rbd/... */ -static int rbd_sysfs_init(void) +static int __init rbd_sysfs_init(void) { int ret; @@ -6082,13 +6082,13 @@ static int rbd_sysfs_init(void) return ret; } -static void rbd_sysfs_cleanup(void) +static void __exit rbd_sysfs_cleanup(void) { bus_unregister(&rbd_bus_type); device_unregister(&rbd_root_dev); } -static int rbd_slab_init(void) +static int __init rbd_slab_init(void) { rbd_assert(!rbd_img_request_cache); rbd_img_request_cache = KMEM_CACHE(rbd_img_request, 0); |