summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2020-03-26 16:58:03 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-26 10:28:18 -0600
commitc8fa4f8e22d1308179dfe17abb00d3aebbcb7410 (patch)
treed457f71f76eacf06f2f86389c51b9162424f7a6a /drivers/ata
parent8ba5a45c998cdbfb565fb7670782407c3e4a25ba (diff)
downloadlinux-c8fa4f8e22d1308179dfe17abb00d3aebbcb7410.tar.gz
linux-c8fa4f8e22d1308179dfe17abb00d3aebbcb7410.tar.bz2
linux-c8fa4f8e22d1308179dfe17abb00d3aebbcb7410.zip
ata: optimize ata_scsi_rbuf[] size
Currently the maximum required size of the ata_scsi_rbuf[] is 576 bytes in ata_scsiop_inq_89() so modify ATA_SCSI_RBUF_SIZE define accordingly. Code size savings on m68k arch using (modified) atari_defconfig: text data bss dec hex filename before: 20782 105 4096 24983 6197 drivers/ata/libata-scsi.o after: 20782 105 576 21463 53d7 drivers/ata/libata-scsi.o Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 0912acb82b80..c2b8428dfb94 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -37,7 +37,7 @@
#include "libata.h"
#include "libata-transport.h"
-#define ATA_SCSI_RBUF_SIZE 4096
+#define ATA_SCSI_RBUF_SIZE 576
static DEFINE_SPINLOCK(ata_scsi_rbuf_lock);
static u8 ata_scsi_rbuf[ATA_SCSI_RBUF_SIZE];