summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-01-06 21:19:22 +0100
committerDan Williams <dan.j.williams@intel.com>2016-01-09 17:39:04 +0100
commitd3b407fb3f782bd915db64e266010ea30a2d381e (patch)
tree2f6b62c418f28892adcdd6a52a2b874b64e34fa7 /drivers/md/md.c
parentlibnvdimm, pmem: move definition of nvdimm_namespace_add_poison to nd.h (diff)
downloadlinux-d3b407fb3f782bd915db64e266010ea30a2d381e.tar.xz
linux-d3b407fb3f782bd915db64e266010ea30a2d381e.zip
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 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 1e48aa9de352..96a991821ae6 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -710,7 +710,7 @@ void md_rdev_clear(struct md_rdev *rdev)
put_page(rdev->bb_page);
rdev->bb_page = NULL;
}
- badblocks_free(&rdev->badblocks);
+ badblocks_exit(&rdev->badblocks);
}
EXPORT_SYMBOL_GPL(md_rdev_clear);