[PATCH 5/5] pktcdvd: Allow larger packets

From: Peter Osterlund
Date: Fri Feb 03 2006 - 15:20:17 EST


From: Phillip Susi <psusi@xxxxxxxxxx>

The pktcdvd driver uses a compile time macro constant to define the
maximum supported packet length. I changed this from 32 sectors to
128 sectors because that allows over 100 MB of additional usable space
on a 700 MB cdrw, and increases throughput.

Note that you need a modified cdrwtool program that can format a CDRW
disc with larger packets to benefit from this change.

Signed-off-by: Peter Osterlund <petero2@xxxxxxxxx>
---

include/linux/pktcdvd.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/pktcdvd.h b/include/linux/pktcdvd.h
index 1623da8..8a94c71 100644
--- a/include/linux/pktcdvd.h
+++ b/include/linux/pktcdvd.h
@@ -169,7 +169,7 @@ struct packet_iosched
#if (PAGE_SIZE % CD_FRAMESIZE) != 0
#error "PAGE_SIZE must be a multiple of CD_FRAMESIZE"
#endif
-#define PACKET_MAX_SIZE 32
+#define PACKET_MAX_SIZE 128
#define FRAMES_PER_PAGE (PAGE_SIZE / CD_FRAMESIZE)
#define PACKET_MAX_SECTORS (PACKET_MAX_SIZE * CD_FRAMESIZE >> 9)


--
Peter Osterlund - petero2@xxxxxxxxx
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/