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>
This commit is contained in:
Dan Williams
2016-01-06 12:19:22 -08:00
parent ad9a8bde2c
commit d3b407fb3f
4 changed files with 6 additions and 6 deletions

View File

@@ -550,12 +550,12 @@ int badblocks_init(struct badblocks *bb, int enable)
EXPORT_SYMBOL_GPL(badblocks_init);
/**
* badblocks_free() - free the badblocks structure
* badblocks_exit() - free the badblocks structure
* @bb: the badblocks structure that holds all badblock information
*/
void badblocks_free(struct badblocks *bb)
void badblocks_exit(struct badblocks *bb)
{
kfree(bb->page);
bb->page = NULL;
}
EXPORT_SYMBOL_GPL(badblocks_free);
EXPORT_SYMBOL_GPL(badblocks_exit);