From: Peter Osterlund <petero2@telia.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Phillip Susi <psusi@cfl.rr.com>
Subject: [PATCH 5/5] pktcdvd: Allow larger packets
Date: 03 Feb 2006 21:21:55 +0100 [thread overview]
Message-ID: <m3u0bgb3bw.fsf_-_@telia.com> (raw)
In-Reply-To: <m3y80sb3dy.fsf_-_@telia.com>
From: Phillip Susi <psusi@cfl.rr.com>
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@telia.com>
---
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@telia.com
http://web.telia.com/~u89404340
next prev parent reply other threads:[~2006-02-03 20:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-03 20:16 [PATCH 1/5] pktcdvd: Fix overflow for discs with large packets Peter Osterlund
2006-02-03 20:18 ` [PATCH 2/5] pktcdvd: Remove version string Peter Osterlund
2006-02-03 20:19 ` [PATCH 3/5] Let CDROM_PKTCDVD_WCACHE depend on EXPERIMENTAL Peter Osterlund
2006-02-03 20:20 ` [PATCH 4/5] pktcdvd: Don't waste kernel memory Peter Osterlund
2006-02-03 20:21 ` Peter Osterlund [this message]
2006-02-03 20:29 ` [PATCH 2/5] pktcdvd: Remove version string Ismail Donmez
2006-02-03 20:49 ` Peter Osterlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3u0bgb3bw.fsf_-_@telia.com \
--to=petero2@telia.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=psusi@cfl.rr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.