diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-01-06 15:19:22 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-01-09 11:39:04 -0500 |
commit | d3b407fb3f782bd915db64e266010ea30a2d381e (patch) | |
tree | 2f6b62c418f28892adcdd6a52a2b874b64e34fa7 /block/badblocks.c | |
parent | ad9a8bde2cb19f6876f964fc48acc8b6a2f325ff (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/badblocks.c')
-rw-r--r-- | block/badblocks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/badblocks.c b/block/badblocks.c index 96aeb9194a2e..fabf6b64c2d1 100644 --- a/block/badblocks.c +++ b/block/badblocks.c | |||
@@ -550,12 +550,12 @@ int badblocks_init(struct badblocks *bb, int enable) | |||
550 | EXPORT_SYMBOL_GPL(badblocks_init); | 550 | EXPORT_SYMBOL_GPL(badblocks_init); |
551 | 551 | ||
552 | /** | 552 | /** |
553 | * badblocks_free() - free the badblocks structure | 553 | * badblocks_exit() - free the badblocks structure |
554 | * @bb: the badblocks structure that holds all badblock information | 554 | * @bb: the badblocks structure that holds all badblock information |
555 | */ | 555 | */ |
556 | void badblocks_free(struct badblocks *bb) | 556 | void badblocks_exit(struct badblocks *bb) |
557 | { | 557 | { |
558 | kfree(bb->page); | 558 | kfree(bb->page); |
559 | bb->page = NULL; | 559 | bb->page = NULL; |
560 | } | 560 | } |
561 | EXPORT_SYMBOL_GPL(badblocks_free); | 561 | EXPORT_SYMBOL_GPL(badblocks_exit); |