diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:25 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:25 -0400 |
commit | 41fa9f863baacd32dd049daf8050d55a0c9e6f1a (patch) | |
tree | 44cc612753746cd459e122f102c72f33b36aa6b7 /include/linux/ide.h | |
parent | b5479167f4206e0d821a51ae149d921cd7a58e54 (diff) |
ide: decrease size of ->pc_buf field in struct ide_atapi_pc
struct ide_atapi_pc is often allocated on the stack and size of ->pc_buf
size is 256 bytes. However since only ide_floppy_create_read_capacity_cmd()
and idetape_create_inquiry_cmd() require such size allocate buffers for
these pc-s explicitely and decrease ->pc_buf size to 64 bytes.
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 03c520917b7a..0f48fbd46028 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -377,7 +377,7 @@ enum { | |||
377 | * With each packet command, we allocate a buffer of IDE_PC_BUFFER_SIZE bytes. | 377 | * With each packet command, we allocate a buffer of IDE_PC_BUFFER_SIZE bytes. |
378 | * This is used for several packet commands (not for READ/WRITE commands). | 378 | * This is used for several packet commands (not for READ/WRITE commands). |
379 | */ | 379 | */ |
380 | #define IDE_PC_BUFFER_SIZE 256 | 380 | #define IDE_PC_BUFFER_SIZE 64 |
381 | #define ATAPI_WAIT_PC (60 * HZ) | 381 | #define ATAPI_WAIT_PC (60 * HZ) |
382 | 382 | ||
383 | struct ide_atapi_pc { | 383 | struct ide_atapi_pc { |