aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/osd.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2009-05-24 13:02:22 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-10 09:57:07 -0400
commit0e35afbc8b054e04a35faa796c72abb3b82bd33b (patch)
tree004a19d25dfc45cbbc88464e4e9d711b2027a668 /fs/exofs/osd.c
parentde6b20385b1c14f97ccdf7da173b4c9a7405083b (diff)
[SCSI] libosd: osd_req_{read,write}_kern new API
By popular demand, define usefull wrappers for osd_req_read/write that recieve kernel pointers. All users had their own. Also remove these from exofs Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'fs/exofs/osd.c')
-rw-r--r--fs/exofs/osd.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/fs/exofs/osd.c b/fs/exofs/osd.c
index b249ae97fb15..48cc4d11d3fb 100644
--- a/fs/exofs/osd.c
+++ b/fs/exofs/osd.c
@@ -125,29 +125,3 @@ int extract_attr_from_req(struct osd_request *or, struct osd_attr *attr)
125 125
126 return -EIO; 126 return -EIO;
127} 127}
128
129int osd_req_read_kern(struct osd_request *or,
130 const struct osd_obj_id *obj, u64 offset, void* buff, u64 len)
131{
132 struct request_queue *req_q = or->osd_dev->scsi_device->request_queue;
133 struct bio *bio = bio_map_kern(req_q, buff, len, GFP_KERNEL);
134
135 if (!bio)
136 return -ENOMEM;
137
138 osd_req_read(or, obj, bio, offset);
139 return 0;
140}
141
142int osd_req_write_kern(struct osd_request *or,
143 const struct osd_obj_id *obj, u64 offset, void* buff, u64 len)
144{
145 struct request_queue *req_q = or->osd_dev->scsi_device->request_queue;
146 struct bio *bio = bio_map_kern(req_q, buff, len, GFP_KERNEL);
147
148 if (!bio)
149 return -ENOMEM;
150
151 osd_req_write(or, obj, bio, offset);
152 return 0;
153}