aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/elevator.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-03-18 22:27:18 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2006-03-18 22:27:18 -0500
commite572ec7e4e432de7ecf7bd2e62117646fa64e518 (patch)
tree56b4b738fb566128d2db6d62aed28cfd41b5398a /include/linux/elevator.h
parent3d1ab40f4c20767afbd361b258a531d73e3e6fc2 (diff)
[PATCH] fix rmmod problems with elevator attributes, clean them up
Diffstat (limited to 'include/linux/elevator.h')
-rw-r--r--include/linux/elevator.h14
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
56struct 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
145struct 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