md: factor do_md_run to separate accesses to ->gendisk
[safe/jmp/linux-2.6] / drivers / md / dm-sysfs.c
index 4b04590..f91b409 100644 (file)
@@ -59,7 +59,7 @@ static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf)
 
 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf)
 {
-       sprintf(buf, "%d\n", dm_suspended(md));
+       sprintf(buf, "%d\n", dm_suspended_md(md));
 
        return strlen(buf);
 }