summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-12-14 00:55:17 +0900
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 12:58:10 -0500
commit78a42ce8fb2604c459e9ebb2a4f2d546b8250111 (patch)
tree45140532e04725fe45bb83b10088a0a42ba7858f /drivers
parent68274794c69991121eaf0a4a35b78aa7f088ec2c (diff)
downloadop-kernel-dev-78a42ce8fb2604c459e9ebb2a4f2d546b8250111.zip
op-kernel-dev-78a42ce8fb2604c459e9ebb2a4f2d546b8250111.tar.gz
[SCSI] osst: make all the buffer the same size
This simiplifies the buffer management; all the buffers in osst_buffer become the same size. This is necessary to use the block layer API (sg driver was modified in the same way) since the block layer API takes the same size page frames instead of scatter gatter. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Willem Riede <osst@riede.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/osst.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index 8f21cbb..13f908c 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi/osst.c
@@ -5286,11 +5286,6 @@ static int enlarge_buffer(struct osst_buffer *STbuffer, int need_dma)
struct page *page = alloc_pages(priority, (OS_FRAME_SIZE - got <= PAGE_SIZE) ? 0 : order);
STbuffer->sg[segs].offset = 0;
if (page == NULL) {
- if (OS_FRAME_SIZE - got <= (max_segs - segs) * b_size / 2 && order) {
- b_size /= 2; /* Large enough for the rest of the buffers */
- order--;
- continue;
- }
printk(KERN_WARNING "osst :W: Failed to enlarge buffer to %d bytes.\n",
OS_FRAME_SIZE);
#if DEBUG
OpenPOWER on IntegriCloud