aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 13:39:29 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 12:04:03 -0500
commita863862257b7dd08d855bafcb0aedd9ad848ed91 (patch)
treee5f3996d006e769b7f5517cab8fbdb334462ab85 /include/linux/mtd
parent3bd456576f22acd55fb6c3d3d4261131821f5a3b (diff)
mtd: blktrans: remove mtd_blkcore_priv, switch to per device queue and thread
This is the biggest change. To make hotplug possible, and this layer clean, the mtd_blktrans_dev now contains everything for a single mtd block translation device. Also removed some very old leftovers. Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/blktrans.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h
index 8b4aa0523db7..a4b392868b54 100644
--- a/include/linux/mtd/blktrans.h
+++ b/include/linux/mtd/blktrans.h
@@ -24,11 +24,13 @@ struct mtd_blktrans_dev {
24 int devnum; 24 int devnum;
25 unsigned long size; 25 unsigned long size;
26 int readonly; 26 int readonly;
27 void *blkcore_priv; /* gendisk in 2.5, devfs_handle in 2.4 */ 27 struct gendisk *disk;
28 struct task_struct *thread;
29 struct request_queue *rq;
30 spinlock_t queue_lock;
31 void *priv;
28}; 32};
29 33
30struct blkcore_priv; /* Differs for 2.4 and 2.5 kernels; private */
31
32struct mtd_blktrans_ops { 34struct mtd_blktrans_ops {
33 char *name; 35 char *name;
34 int major; 36 int major;
@@ -60,8 +62,6 @@ struct mtd_blktrans_ops {
60 struct list_head devs; 62 struct list_head devs;
61 struct list_head list; 63 struct list_head list;
62 struct module *owner; 64 struct module *owner;
63
64 struct mtd_blkcore_priv *blkcore_priv;
65}; 65};
66 66
67extern int register_mtd_blktrans(struct mtd_blktrans_ops *tr); 67extern int register_mtd_blktrans(struct mtd_blktrans_ops *tr);