summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-01-06 12:19:22 -0800
committerDan Williams <dan.j.williams@intel.com>2016-01-09 08:39:04 -0800
commitd3b407fb3f782bd915db64e266010ea30a2d381e (patch)
tree2f6b62c418f28892adcdd6a52a2b874b64e34fa7 /block/genhd.c
parentad9a8bde2cb19f6876f964fc48acc8b6a2f325ff (diff)
badblocks: rename badblocks_free to badblocks_exit
For symmetry with badblocks_init() make it clear that this path only destroys incremental allocations of a badblocks instance, and does not free the badblocks instance itself. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 88579cf373b8..f463c67e6ba2 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -671,7 +671,7 @@ void del_gendisk(struct gendisk *disk)
blk_unregister_region(disk_devt(disk), disk->minors);
if (disk->bb) {
- badblocks_free(disk->bb);
+ badblocks_exit(disk->bb);
kfree(disk->bb);
}