diff options
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index c9c6a345e17b..23d1d54b12a4 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -1685,9 +1685,9 @@ int bitmap_create(mddev_t *mddev) | |||
1685 | 1685 | ||
1686 | bitmap->mddev = mddev; | 1686 | bitmap->mddev = mddev; |
1687 | 1687 | ||
1688 | bm = sysfs_get_dirent(mddev->kobj.sd, "bitmap"); | 1688 | bm = sysfs_get_dirent(mddev->kobj.sd, NULL, "bitmap"); |
1689 | if (bm) { | 1689 | if (bm) { |
1690 | bitmap->sysfs_can_clear = sysfs_get_dirent(bm, "can_clear"); | 1690 | bitmap->sysfs_can_clear = sysfs_get_dirent(bm, NULL, "can_clear"); |
1691 | sysfs_put(bm); | 1691 | sysfs_put(bm); |
1692 | } else | 1692 | } else |
1693 | bitmap->sysfs_can_clear = NULL; | 1693 | bitmap->sysfs_can_clear = NULL; |