summaryrefslogtreecommitdiffstats
path: root/block/partition-generic.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2015-07-16 05:16:44 +0200
committerJens Axboe <axboe@fb.com>2015-07-17 16:41:53 +0200
commitb54e5ed8f285d62c0d242c4ef9da90937994db02 (patch)
treeee9303a8a5df76206884f3ed4c61a1e9fd83721a /block/partition-generic.c
parentMerge tag 'pm+acpi-4.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadlinux-b54e5ed8f285d62c0d242c4ef9da90937994db02.tar.xz
linux-b54e5ed8f285d62c0d242c4ef9da90937994db02.zip
block: partition: introduce hd_free_part()
So the helper can be used in both generic partition case and part0 case. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partition-generic.c')
-rw-r--r--block/partition-generic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/partition-generic.c b/block/partition-generic.c
index 0d9e5f97f0a8..eca0d02a607c 100644
--- a/block/partition-generic.c
+++ b/block/partition-generic.c
@@ -212,8 +212,7 @@ static void part_release(struct device *dev)
{
struct hd_struct *p = dev_to_part(dev);
blk_free_devt(dev->devt);
- free_part_stats(p);
- free_part_info(p);
+ hd_free_part(p);
kfree(p);
}