summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-04-01 12:08:49 +0300
committerShaohua Li <shli@fb.com>2016-04-01 23:05:50 +0300
commitf9a67b1182e5abfcfcec24762ea95a77332f035e (patch)
tree9c7b17f98a7838daa26c1573e7d393350aeab9a4 /ipc
parented3b98c71cd91fa05954df52a79dcd6be08dd730 (diff)
downloadlinux-f9a67b1182e5abfcfcec24762ea95a77332f035e.tar.xz
md/bitmap: clear bitmap if bitmap_create failed
If bitmap_create returns an error, we need to call either bitmap_destroy or bitmap_free to do clean up, and the selection is based on mddev->bitmap is set or not. And the sysfs_put(bitmap->sysfs_can_clear) is moved from bitmap_destroy to bitmap_free, and the comment of bitmap_create is changed as well. Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions