diff options
Diffstat (limited to 'include/linux/elevator.h')
-rw-r--r-- | include/linux/elevator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 4d0a80f13ee0..ad133fcfb239 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h | |||
@@ -53,6 +53,12 @@ struct elevator_ops | |||
53 | 53 | ||
54 | #define ELV_NAME_MAX (16) | 54 | #define ELV_NAME_MAX (16) |
55 | 55 | ||
56 | struct elv_fs_entry { | ||
57 | struct attribute attr; | ||
58 | ssize_t (*show)(elevator_t *, char *); | ||
59 | ssize_t (*store)(elevator_t *, const char *, size_t); | ||
60 | }; | ||
61 | |||
56 | /* | 62 | /* |
57 | * identifies an elevator type, such as AS or deadline | 63 | * identifies an elevator type, such as AS or deadline |
58 | */ | 64 | */ |
@@ -61,7 +67,7 @@ struct elevator_type | |||
61 | struct list_head list; | 67 | struct list_head list; |
62 | struct elevator_ops ops; | 68 | struct elevator_ops ops; |
63 | struct elevator_type *elevator_type; | 69 | struct elevator_type *elevator_type; |
64 | struct attribute **elevator_attrs; | 70 | struct elv_fs_entry *elevator_attrs; |
65 | char elevator_name[ELV_NAME_MAX]; | 71 | char elevator_name[ELV_NAME_MAX]; |
66 | struct module *elevator_owner; | 72 | struct module *elevator_owner; |
67 | }; | 73 | }; |
@@ -142,12 +148,6 @@ enum { | |||
142 | ELV_MQUEUE_MUST, | 148 | ELV_MQUEUE_MUST, |
143 | }; | 149 | }; |
144 | 150 | ||
145 | struct elv_fs_entry { | ||
146 | struct attribute attr; | ||
147 | ssize_t (*show)(elevator_t *, char *); | ||
148 | ssize_t (*store)(elevator_t *, const char *, size_t); | ||
149 | }; | ||
150 | |||
151 | #define rq_end_sector(rq) ((rq)->sector + (rq)->nr_sectors) | 151 | #define rq_end_sector(rq) ((rq)->sector + (rq)->nr_sectors) |
152 | 152 | ||
153 | #endif | 153 | #endif |