diff options
Diffstat (limited to 'include/linux/raid/md_k.h')
-rw-r--r-- | include/linux/raid/md_k.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index cb8b44d1588b..4169c11e5451 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -282,6 +282,13 @@ struct mdk_personality_s | |||
282 | }; | 282 | }; |
283 | 283 | ||
284 | 284 | ||
285 | struct md_sysfs_entry { | ||
286 | struct attribute attr; | ||
287 | ssize_t (*show)(mddev_t *, char *); | ||
288 | ssize_t (*store)(mddev_t *, const char *, size_t); | ||
289 | }; | ||
290 | |||
291 | |||
285 | static inline char * mdname (mddev_t * mddev) | 292 | static inline char * mdname (mddev_t * mddev) |
286 | { | 293 | { |
287 | return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; | 294 | return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; |